solid_queue icon indicating copy to clipboard operation
solid_queue copied to clipboard

missed scheduled jobs on deploy

Open dorianmariecom opened this issue 2 months ago • 1 comments

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?

dorianmariecom avatar Oct 30 '25 18:10 dorianmariecom

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 ?

nflorentin avatar Oct 31 '25 14:10 nflorentin

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

dorianmariecom avatar Nov 28 '25 18:11 dorianmariecom