Function UpdateTask is taking longer time (100ms or more) for POST TASK API
We have observed that the function updateTask is taking more time around 100ms and even more sometimes with the latest Netflix master code.
https://github.com/Netflix/conductor/blob/master/core/src/main/java/com/netflix/conductor/service/TaskServiceImpl.java#L135
Last code we had of Netflix/conductor was of Oct 2017. Lately (Sep 2020), we have merged the latest master Of Netflix/conductor in our local master repository. There is no change in setup or environment but the latest conductor code merged from Netflix master in our forked repo (https://github.com/CiscoM31/conductor/tree/master)
With New Code
Task Started @2021-01-08 13:41:43.406 and finshed @2021-01-08 13:41:43.716. Around 300ms
2021-01-08 13:41:43.406 DEBUG TaskServiceImpl:136 - Update Task: TaskResult{workflowInstanceId='6101a6fd-be51-42f1-a277-84bb029814de', taskId='3e6f31e0-8278-476c-87e6-130e00121703', reasonForIncompletion='null', callbackAfterSeconds=0, workerId='null', status=COMPLETED, outputData={}, outputMessage=null, logs=[], externalOutputPayloadStoragePath='null', subWorkflowId='null'} with callback time: 0
:
:
2021-01-08 13:41:43.716 DEBUG TaskServiceImpl:138 - Task: TaskResult{workflowInstanceId='6101a6fd-be51-42f1-a277-84bb029814de', taskId='3e6f31e0-8278-476c-87e6-130e00121703', reasonForIncompletion='null', callbackAfterSeconds=0, workerId='null', status=COMPLETED, outputData={}, outputMessage=null, logs=[], externalOutputPayloadStoragePath='null', subWorkflowId='null'} updated successfully with callback time: 0
With Old Code
Task Started @2021-01-08 13:41:43.406 and finshed @2021-01-08 13:41:43.716. Around 230ms
2021-01-08 14:38:55.018 DEBUG TaskServiceImpl:133 - Update Task: TaskResult{workflowInstanceId='5ff762b9-873c-4f41-80cb-cd6a8c7ea04c', taskId='9b825b5f-1f4f-459f-bb0e-fed8df71da59', reasonForIncompletion='null', callbackAfterSeconds=0, workerId='null', status=COMPLETED, outputData={}, outputMessage=null, logs=[], externalOutputPayloadStoragePath='null'} with callback time: 0
:
:
2021-01-08 14:38:55.246 DEBUG TaskServiceImpl:135 - Task: TaskResult{workflowInstanceId='5ff762b9-873c-4f41-80cb-cd6a8c7ea04c', taskId='9b825b5f-1f4f-459f-bb0e-fed8df71da59', reasonForIncompletion='null', callbackAfterSeconds=0, workerId='null', status=COMPLETED, outputData={}, outputMessage=null, logs=[], externalOutputPayloadStoragePath='null'} updated successfully with callback time: 0
Attaching the log excerpt from new and old code, if it helps. It is not the entire log but the excerpt of the log specifying the respective task. newlog.txt oldlog.txt
fyi @manjurad
Hey @techyragu, updateTask does a lot of things along with updating the task, such as cleaning up task queues and few other places that might store relevant task information, and calling decide on workflow which further evaluates and progresses the workflow etc. The structure and order of these might've also changed since Conductor 1.x in 2017.
We're curious to understand the impact of this increase in latency of updateTask endpoint. Also, how often have you seen this latency increase? do you have more metrics, such as averages and percentiles of this latency increase comparison?
This issue is stale, because it has been open for 45 days with no activity. Remove the stale label or comment, or this will be closed in 7 days.
This issue was closed, because it has been stalled for 7 days with no activity.