Skip to content

fix: Fixed tasks using Batch or Subtask plugin getting stuck in the WAITING state #561

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DrRebus
Copy link
Contributor

@DrRebus DrRebus commented Apr 9, 2025

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug Fix

  • What is the current behavior? (You can also link to an open issue here)
    Tasks using the Batch or Subtask plugin sometimes get stuck in the WAITING state because they miss the child task wake-up event.
    When a child task finishes, it attempts to wake its parent up by running it. If the parent is already running at this time, this event is ignored and the child task terminates. However, the parent task may have run the step related to the child task before it finished and may think the child task is still running.

  • What is the new behavior (if this is a feature change)?
    Instead of trying to run the parent, child tasks attempt to change the parent's next_retry date so they get rerun as soon as possible.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    Nope.

  • Other information:

@DrRebus DrRebus force-pushed the rtordjma/fix-tasks-stuck-waiting branch 3 times, most recently from f205688 to 2fe9d72 Compare April 10, 2025 13:06
@DrRebus DrRebus force-pushed the rtordjma/fix-tasks-stuck-waiting branch from 2fe9d72 to 21607b6 Compare April 11, 2025 13:32
@DrRebus DrRebus marked this pull request as ready for review April 11, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant