Skip to main content
Solved

Prevent scheduled job launch if same job already in queue ?

  • March 22, 2022
  • 3 replies
  • 46 views

lifalin2016
Supporter
Forum|alt.badge.img+38

Hi all.

 

Is there a way to prevent a scheduled job from being launched, if it's already present as a queued job ?

 

If there is a bulk of jobs that need to be processed first, it clogs up the system. Lower prioritized jobs will be bulked together, and you can end up having a handful of identical jobs waiting to be processed, one after the other. This is a waste of resources.

 

It would be nice, if subsequent job launches could be cancelled in advance, if the very same job with the very same parameters (none in this case) is present as an already queued job (or running).

 

Cheers.

Best answer by hollyatsafe

Hi @Lars I Nielsen​ ,

 

On the Schedules configuration there is a check box 'Skip if Job in Progress'.

 

Screen Shot 2022-03-22 at 8.44.24 AMWhen checked the schedule will not trigger a job if a previous job triggered by this schedule has not been completed.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

Forum|alt.badge.img+2
  • 719 replies
  • Best Answer
  • March 22, 2022

Hi @Lars I Nielsen​ ,

 

On the Schedules configuration there is a check box 'Skip if Job in Progress'.

 

Screen Shot 2022-03-22 at 8.44.24 AMWhen checked the schedule will not trigger a job if a previous job triggered by this schedule has not been completed.


hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1632 replies
  • March 23, 2022

Hi @Lars I Nielsen​ ,

 

On the Schedules configuration there is a check box 'Skip if Job in Progress'.

 

Screen Shot 2022-03-22 at 8.44.24 AMWhen checked the schedule will not trigger a job if a previous job triggered by this schedule has not been completed.

huh, didn't realise that also applies to jobs sitting in the queue - hovering over it makes it a bit clearer that it does apply to queued jobs as wellimage 


lifalin2016
Supporter
Forum|alt.badge.img+38
  • Author
  • Supporter
  • 592 replies
  • March 23, 2022

Hi @Lars I Nielsen​ ,

 

On the Schedules configuration there is a check box 'Skip if Job in Progress'.

 

Screen Shot 2022-03-22 at 8.44.24 AMWhen checked the schedule will not trigger a job if a previous job triggered by this schedule has not been completed.

Thanks Holly.

I'm sure I've noticed that checkbox some time before, but I normally never notice it. Thanks for bringing it back to my attention :-)

It's good that Safe did anticipate this situation, it is precisely what I needed.

Cheers.