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

Ability to Cancel a Future Scheduled Job #395

Open
sesyilmaz opened this issue Oct 28, 2024 · 1 comment
Open

Ability to Cancel a Future Scheduled Job #395

sesyilmaz opened this issue Oct 28, 2024 · 1 comment

Comments

@sesyilmaz
Copy link

Hello,

We are planning to use Solid Queue to schedule tasks for future execution. However, we have some use cases where we might need to cancel enqueued jobs before they run.

While we could include logic within the job itself to check business conditions and decide whether to proceed, this approach would still consume unnecessary resources. Therefore, we would prefer the ability to cancel jobs before they execute.

Is there any plan to implement this feature? If so, what timeline would you anticipate for it?

Thanks in advance !

@rosa
Copy link
Member

rosa commented Oct 29, 2024

Hey @sesyilmaz, thanks for writing this question! I'm not sure I understand very well how this feature would work 🤔 As I see it, would the idea be that when the job is due for execution, Solid Queue detects it shouldn't run, and discards it? How would you specify that in a way that Solid Queue can know? I think that whatever the condition, it'd be something that consumes the same resources as if you included it in the job 🤔 I think I might be misunderstanding how you have imagined this feature to work.

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

No branches or pull requests

2 participants