dosubot[bot] commented on issue #8379:
URL: 
https://github.com/apache/incubator-devlake/issues/8379#issuecomment-2794764308

   <!-- Answer -->
   The issue you're experiencing with duplicate tasks running after a pod 
restart might be related to how Apache DevLake handles task resumption and 
cancellation. When a pod is killed and restarted, the pipeline status is marked 
as interrupted. If the `RESUME_PIPELINES` configuration is set to true, the 
pipeline is set to resume, which might lead to the observed behavior of 
duplicate tasks if the cancellation process wasn't fully completed before the 
pod was killed 
<sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/backend/server/services/pipeline.go)</sup><sup>[[2]](https://github.com/apache/incubator-devlake/blob/main/backend/server/services/pipeline_runner.go)</sup>.
   
   To address this, you might want to check the `RESUME_PIPELINES` setting in 
your configuration. If it's set to true, consider setting it to false to 
prevent automatic resumption of tasks after a pod restart. Additionally, ensure 
that the task cancellation process is completed before killing the pod to avoid 
leaving tasks in an inconsistent state.
   
   If this issue persists, it might be beneficial to investigate further into 
the task management and cancellation logic to identify any potential edge cases 
or race conditions that could lead to duplicate task entries.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/c83f4635-2ebf-4991-bb0c-ad821077d04f?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/c83f4635-2ebf-4991-bb0c-ad821077d04f?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/c83f4635-2ebf-4991-bb0c-ad821077d04f?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/c83f4635-2ebf-4991-bb0c-ad821077d04f?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/c83f4635-2ebf-4991-bb0c-ad821077d04f?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/c83f4635-2ebf-4991-bb0c-ad821077d04f?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/c83f4635-2ebf-4991-bb0c-ad821077d04f?feedback_type=other)</sup>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to