Examples for deleting, rescheduling and updating a scheduled job #142
-
|
I searched all the examples in this repo but could not find any sample code to My use case is that I want to schedule a job and then edit the time it needs to run later (I think this should be |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 1 reply
-
|
For |
Beta Was this translation helpful? Give feedback.
-
|
As an API consumer, I think it would be great if all these methods just take in |
Beta Was this translation helpful? Give feedback.
-
|
The That mentioned, there is a reason apalis discourages using these apis directly. For once they can create undefined behavior since they are storage specific rather than worker specific. ( Think worker continues to execute a killed job) If you have logic you want eg to kill a job if it returns a specific error then you should use layers, because they are predictable,testable etc. If you need you go lower than that I advice you get the connection pool and write some sql or redis commands. I am curious though what you are unable to do currently. |
Beta Was this translation helpful? Give feedback.
-
|
As I mentioned, this is what I want to do:
|
Beta Was this translation helpful? Give feedback.
-
|
When you push/schedule a job, you get a JobId, |
Beta Was this translation helpful? Give feedback.
-
Can you give an example, I was not able to figure this out. |
Beta Was this translation helpful? Give feedback.
-
|
If you have the job
|
Beta Was this translation helpful? Give feedback.
-
|
Hello there :) As of 2026, the API of the library seems to have changed a lot and we can't find a way to kill/delete a scheduled job. Can someone point us on the right direction? Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
What backend are yoi using?
…On Mon, 16 Mar 2026 at 13:17, Víctor Martínez ***@***.***> wrote:
Hello there :) As of 2026, the API of the library seems to have changed a
lot and we can't find a way to kill/delete a scheduled job.
Can someone point us on the right direction? Thanks!
—
Reply to this email directly, view it on GitHub
<#142 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWXVRGUC76HO5OR4ELYCFG34Q7ICVAVCNFSM6AAAAACWTFV4L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMMJVGY2DSOI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
If you have the job