You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "eye-gu (via GitHub)" <gi...@apache.org> on 2026/06/11 09:46:41 UTC
[I] [Bug] [master] Infinite Retry Loop When Pausing a Workflow with Pending TaskGroup Tasks [dolphinscheduler]
eye-gu opened a new issue, #18338:
URL: https://github.com/apache/dolphinscheduler/issues/18338
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
When a workflow is paused while it contains tasks waiting for a TaskGroup slot, those tasks enter an infinite pause-retry loop. The task state remains SUBMITTED_SUCCESS, the workflow state remains READY_PAUSE, and neither can ever progress.
### What you expected to happen
The task should be paused, releasing its TaskGroup queue slot. The workflow should reach the PAUSE state.
### How to reproduce
1. Create a workflow containing a task that uses a TaskGroup
2. Start the workflow → the task enters SUBMITTED_SUCCESS and waits for the TaskGroup slot
3. Immediately pause the workflow
### Anything else
A simple approach is to add a check in TaskSubmittedStateAction#onPauseEvent: if the task is waiting for a TaskGroup slot, the Paused event can also be triggered directly.
A better approach would be to introduce a dedicated WAITING_TASK_GROUP status. This would not only simplify the pause event handling, but also allow users to see the real workflow state on the UI.
### Version
dev
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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: commits-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] [master] Infinite Retry Loop When Pausing a Workflow with Pending TaskGroup Tasks [dolphinscheduler]
Posted by "eye-gu (via GitHub)" <gi...@apache.org>.
eye-gu commented on issue #18338:
URL: https://github.com/apache/dolphinscheduler/issues/18338#issuecomment-4681872654
@SbloodyS Even when the TaskGroup slot becomes available, the task will remain SUBMITTED_SUCCESS forever and the workflow will remain READY_PAUSE forever. This is because notifyWaitingTaskInstance rejects notification when the workflow is not in RUNNING_EXECUTION state. So this is actually a bug, not just an improvement.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [master] Infinite Retry Loop When Pausing a Workflow with Pending TaskGroup Tasks [dolphinscheduler]
Posted by "zhengtingxue (via GitHub)" <gi...@apache.org>.
zhengtingxue commented on issue #18338:
URL: https://github.com/apache/dolphinscheduler/issues/18338#issuecomment-4829592094
when i stop the workflow,i have the same bug
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [master] Infinite Retry Loop When Pausing a Workflow with Pending TaskGroup Tasks [dolphinscheduler]
Posted by "eye-gu (via GitHub)" <gi...@apache.org>.
eye-gu commented on issue #18338:
URL: https://github.com/apache/dolphinscheduler/issues/18338#issuecomment-4689458766
@SbloodyS Okay, I quickly fix the bug
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [master] Infinite Retry Loop When Pausing a Workflow with Pending TaskGroup Tasks [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #18338:
URL: https://github.com/apache/dolphinscheduler/issues/18338#issuecomment-4680686566
cc @ruanwenjun
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [master] Infinite Retry Loop When Pausing a Workflow with Pending TaskGroup Tasks [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #18338:
URL: https://github.com/apache/dolphinscheduler/issues/18338#issuecomment-4681622466
I have a quick understanding of this design logic. This is because the task is waiting for taskGroup resources. For non-running tasks, we will keep trying to pause/kill them. Once resources become available, the task will enter the dispatch/running stage, and then it can be paused/killed. The logic of this block can be optimized. It is not a bug, so I mark it as improvement.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [master] Infinite Retry Loop When Pausing a Workflow with Pending TaskGroup Tasks [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS closed issue #18338: [Bug] [master] Infinite Retry Loop When Pausing a Workflow with Pending TaskGroup Tasks
URL: https://github.com/apache/dolphinscheduler/issues/18338
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] [master] Infinite Retry Loop When Pausing a Workflow with Pending TaskGroup Tasks [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #18338:
URL: https://github.com/apache/dolphinscheduler/issues/18338#issuecomment-4687880919
I got what you mean. I mark this issue back to the bug and open a new improvement issue.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [master] Infinite Retry Loop When Pausing a Workflow with Pending TaskGroup Tasks [dolphinscheduler]
Posted by "eye-gu (via GitHub)" <gi...@apache.org>.
eye-gu commented on issue #18338:
URL: https://github.com/apache/dolphinscheduler/issues/18338#issuecomment-4679592755
@SbloodyS Do you think it's better to quickly fix bugs first, or to add a new task state?
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org