I'm not able to update the status of task #2506
Replies: 3 comments 11 replies
-
Hello @vidhi-pavan-agrawal, if I understand correctly, you are trying to update task_1 as completed via POST to http://localhost:8080/api/tasks/ using the taskId and workflowInstanceId of task_1, but it didn't work. Could you try a GET of that task to include more details for us to take a look at? Also, after you poll task_1 from the queue, did you see the status of task_1 got updated to "in progress"? |
Beta Was this translation helpful? Give feedback.
-
Hello @vidhi-pavan-agrawal I think you are looking at the wrong place, the screenshot above shows the workflow definition. If you want to see workflow execution details, try use the "Execution" tab to find it |
Beta Was this translation helpful? Give feedback.
-
Other than setting |
Beta Was this translation helpful? Give feedback.
-
I'm using Netflix Conductor v3.3.1 I have setup conductor using docker-compose while trying out kitchensink example I'm able to poll the tasks and would see the task queue using :
curl http://localhost:8080/api/tasks/poll/task_1
to update the task_1 status as complete and push task5 in the queue I used with the workflowInstanceID and TaskID received from earlier command:
curl -H 'Content-Type:application/json' -H 'Accept:application/json' -X POST http://localhost:8080/api/tasks/ -d '
{
"taskId": "b9eea7dd-3fbd-46b9-a9ff-b00279459476",
"workflowInstanceId": "b0d1a935-3d74-46fd-92b2-0ca1e388659f",
"status": "COMPLETED",
"outputData": {
"mod": 5,
"taskToExecute": "task_1",
"oddEven": 0,
"dynamicTasks": [
{
"name": "task_1",
"taskReferenceName": "task_1_1",
"type": "SIMPLE"
},
{
"name": "sub_workflow_4",
"taskReferenceName": "wf_dyn",
"type": "SUB_WORKFLOW",
"subWorkflowParam": {
"name": "sub_flow_1"
}
}
],
"inputs": {
"task_1_1": {},
"wf_dyn": {}
}
}
}'
this is just returning the old task id and was not able to update the status of the tasks as "COMPLETE" .
Beta Was this translation helpful? Give feedback.
All reactions