Skip to content
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

Allow running jobs to be stopped #50

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

henare
Copy link

@henare henare commented Sep 27, 2024

This reimplements resque-status' kill functionality. Using the verb "kill" always seemed like a misnomer since it will not kill a stuck job.

Instead we've used the verb "stop" since that's what we're asking the job to do. We've taken some liberties by using the "reserved" field "stop" to implement this functionality. It seemed like a natural fit.

Raising Stopped also felt like a natural fit. It means the job will not be retried, which is what we want here.

As part of developing this I wanted an easy way to run the specs in docker so I've included a commit that does this too.

This reimplements resque-status' kill functionality. Using the verb
"kill" always seemed like a misnomer since it will not kill a stuck job.

Instead we've used the verb "stop" since that's what we're asking the
job to do. We've taken some liberties by using the "reserved" field
"stop" to implement this functionality. It seemed like a natural fit.

Raising `Stopped` also felt like a natural fit. It means the job will
not be retried, which is what we want here.
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