【问题标题】:Getting error while creating new task definition on conductor在导体上创建新任务定义时出错
【发布时间】:2017-09-05 12:46:49
【问题描述】:

我正在使用

在导体上创建一个 Worker 任务

http://localhost:8080/api/metadata/taskdefs

但出现此错误

{
"code": "INTERNAL_ERROR",
"message": "INTERNAL_ERROR - Can not deserialize instance of java.util.ArrayList out of START_OBJECT token\n at [Source: HttpInputOverHTTP@2179fb[c=323,s=STREAM]; line: 1, column: 1]",
"instance": "linkez-System-Product-Name"
}

我的任务定义 JSON 有效负载是

{
   "name": "encode_task",
   "retryCount": 3,
   "timeoutSeconds": 1200,
   "inputKeys": [
      "sourceRequestId",
      "qcElementType"
   ],
  "outputKeys": [
    "state",
    "skipped",
    "result"
  ],
 "timeoutPolicy": "TIME_OUT_WF",
 "retryLogic": "FIXED",
 "retryDelaySeconds": 600,
 "responseTimeoutSeconds": 3600 
 }

【问题讨论】:

标签: netflix netflix-conductor


【解决方案1】:

是的,我能够解决这个问题。我犯了一个简单的错误。要创建任务,我们必须在发布新任务时将数组 i,e [] 作为 JSON 而不是 {} 发送

【讨论】:

    猜你喜欢
    • 2019-12-15
    • 2016-12-22
    • 2014-09-16
    • 2022-11-17
    • 1970-01-01
    • 2017-06-04
    • 2019-03-28
    • 1970-01-01
    • 2018-12-01
    相关资源
    最近更新 更多