-
Notifications
You must be signed in to change notification settings - Fork 576
[Bug][tasks] Duplicate subtasks running #8379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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 To address this, you might want to check the 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. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
@dosu the resume is expected, the issue is that there are two entries in the |
Apache DevLake ensures the uniqueness of subtask entries in the If you're seeing duplicate entries, it might indicate a race condition or an issue in the task management logic that wasn't fully addressed. Unfortunately, I couldn't find specific information on known issues or race conditions that could lead to this situation. It might be helpful to review the task management and resumption logic to ensure that the uniqueness constraints are being properly enforced during pipeline resumption. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Adding some extra context, the issue has auto resolved, pipelines finished and Apache Devlake resumed as normal. Feel free to keep this open if you would like to test this corner case. |
Search before asking
What happened
I cancelled a transformation pipeline but the pipeline remained hanging. I eventually killed the pod, once restarted Apache Devlake resumed (although cancelled) the pipeline, but now I see two tasks running.
What do you expect to happen
Pipeline is cancelled
How to reproduce
Not sure, as I never experienced this issue before. I was running a pipeline which was cancelled because I needed to change the scope config.
Cancelling the pipeline resulted in a stuck state, I had to actually kill the pod, since I cannot access the DB directly.
Restarting the pod, resulted in the pipeline resuming but I see now two task ID's with the exact same
finished_records
column updates.Anything else
No response
Version
v1.0.2-beta4
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: