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

Option to set a specific attempt date #30

Open
strowbeary opened this issue Jun 28, 2022 · 4 comments
Open

Option to set a specific attempt date #30

strowbeary opened this issue Jun 28, 2022 · 4 comments

Comments

@strowbeary
Copy link

strowbeary commented Jun 28, 2022

I'm trying to add a way to specify an attempt date for a job instead of just a delay.
I need a little help to figure out how to change things.

Could we contact each other ? Or discuss about it here ?

@Diggsey
Copy link
Owner

Diggsey commented Jun 28, 2022

Can't you just calculate the delay based on the current date and time?

@strowbeary
Copy link
Author

strowbeary commented Jun 29, 2022

Yes but it can add a more practical way to schedule a job.

@strowbeary
Copy link
Author

strowbeary commented Jul 4, 2022

I wanted to know if there was a way to change the delay of a job after it is scheduled ?
For the moment i tried to DELETE the job with it's id and reschedule the job with the new delay but it never get executed.

@Diggsey
Copy link
Owner

Diggsey commented Jul 4, 2022

I wanted to know if there was a way to change the delay of a job after it is scheduled?

There is not - the best way to do this is schedule a new job, and use your own database table to track whether a job has been cancelled (so when the job starts, it first says "have I been cancelled?" and if it has, then it just completes without doing anything.

For the moment i tried to DELETE the job with it's id and reschedule the job with the new delay but it never get executed.

This will cause problems if using strict ordering on jobs. That said, the new job should still get executed.

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