CLI Job / Cron Runner

CLI Job / Cron Runner 2.1.0

No permission to download

nocte

Well-known member
Note that after installing the latest version, if you are seeing the message "There are scheduled jobs outstanding which have not run. Jobs may not be getting triggered when expected."

View attachment 236235

... check to see whether you are still using the --time command line option.

This option has been renamed to --max-execution-time to match the option names used in the core job runner.

Make sure you have updated all of your cron tasks to use --max-execution-time
Hi @Sim,

thank you for this great addon. I am using it and most times I visit admin.php I see that message. But cron jobs are executed (as I can see when I visit admin.php?cron/). We have a lot of background-jobs working and set --max-execution-time=240.

So, my guess is, that every time a cron runs longer than 1 minute (which seems to happen quite frequently), we get this message, because the next jobs are already waiting.

Can that be the case?
 

Sim

Well-known member
Hi @Sim,

thank you for this great addon. I am using it and most times I visit admin.php I see that message. But cron jobs are executed (as I can see when I visit admin.php?cron/). We have a lot of background-jobs working and set --max-execution-time=240.

So, my guess is, that every time a cron runs longer than 1 minute (which seems to happen quite frequently), we get this message, because the next jobs are already waiting.

Can that be the case?

Yes, the system generally only processes one task at a time, so if there are tasks which are taking longer than 1 minute then you'll likely see the message.

In particular if you have any Cron tasks which are scheduled to run every minute - you'll probably get this message a lot, since there will almost always be a Job outstanding to trigger the Cron tasks.

You can check on which jobs are outstanding by running the hg:show-jobs command from the CLI - it lists the next run time for any outstanding jobs, and shows the current time (according to the forums) at the bottom, so you can tell whether the job is delayed or still pending.
 

nocte

Well-known member
I see. That's quite annoying. This message also hides any outstanding manual jobs (i.e. you cannot see both "outstanding" messages, cron and manual tasks, at the same time; at least that's my experience).

Is it possible to show this message only if jobs are outstanding for at least X minutes?
 
Top