solid_queue
solid_queue copied to clipboard
missed scheduled jobs on deploy
hi, for instance i have a job that runs every minute :
- i schedule it at 1:33:00pm
- it executes and schedules itself at 1:34:00pm
- i deploy with kamal, deploy starts 1:33:30pm and ends 1:34:30pm
- it skips the scheduled job at 1:34:00pm and never executes it
i know i should be using recurring tasks, but i can't in my use case
what should i do?
is there any configuration for that?
You should never use a job a that re-enqueue himself for the reason you describe.
The good practice is to have a recurring task which run an idempotent job.
Why you can't use it in your case ?
i migrated to a recurring task, but now every day at 9am a lot of jobs execute and one job is stuck in the scheduler.
i will investigate