Skip to content

Allow running a stopped worker again - #54

Merged
DavidBadura merged 1 commit into
1.6.xfrom
reset-stop-flag
Oct 2, 2026
Merged

DavidBadura merged 1 commit into
1.6.xfrom
reset-stop-flag

Conversation

@DavidBadura

Copy link
Copy Markdown
Member

Calling run() a second time on the same worker instance did nothing except dispatch the started and stopped events, because the stop flag was never reset. It is now reset once run() has finished. Doing it at the end instead of the start keeps the existing behaviour that calling stop() before run() prevents the job from running.

This touches the same lines as #52, so whichever gets merged second needs a small rebase.

Calling run() a second time on a stopped worker did nothing except
dispatch the started and stopped events. The flag is reset at the end of
run() rather than at the start, so stop() before run() still prevents the
job from running.
@DavidBadura DavidBadura added this to the 1.6.0 milestone Oct 2, 2026
@DavidBadura DavidBadura added the enhancement New feature or request label Oct 2, 2026
@DavidBadura
DavidBadura merged commit 022eecb into 1.6.x Oct 2, 2026
16 checks passed
@DavidBadura
DavidBadura deleted the reset-stop-flag branch October 2, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants