Skip to main content
Solved

Prevent scheduled job launch if same job already in queue ?


lifalin2016
Contributor
Forum|alt.badge.img+30

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.

View original
Did this help you find an answer to your question?

3 replies

Forum|alt.badge.img+2
  • 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+55
  • Celebrity
  • March 23, 2022
hollyatsafe wrote:

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
Contributor
Forum|alt.badge.img+30
  • Author
  • Contributor
  • March 23, 2022
hollyatsafe wrote:

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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings