在导体上创建新任务定义时出错

时间:2017-04-10 12:55:24

标签: netflix netflix-conductor

我正在使用

创建指挥工作人员
  

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 
 }

1 个答案:

答案 0 :(得分:0)

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