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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to