we are getting scheduler may not run (last execution of Stats.generate 38 minutes over) - please contact your system administrator in the latest zammad-docker-compose version
there is an there is an interval of 11 minutes here:
thanks again for the time you took.
I’ve read your post over and over and think to understand where you’re aiming to. Hopefully I’ll get it right (in this case it’s not a bug ;( )
Zammad regulary checks if key jobs have been run and, at some point, throws a monitoring alert (like yours) where in this case it thinks that your scheduler might not be running.
In fact, it’s possible that your scheduler is perfectly fine, but something else is blocking Zammad or the runtime of this tasks (for whatever reason).
Now, to understand how these 38 minutes come up (and why they don’t match with the 11 minute period), we’ll need to take a closer look on how a scheduler job attribute looks like in Zammad:
Our monitoring checks for this key: last_run. It contains the last timestamp when this task has run (no matter if successful or not).
Actuually the following code part is responsible for the scheduler based checks:
Zammad will alert you if the job is 8 minutes overdue. The above monitoring message is the result of that. So while Stats.generateshould run every 11 minutes, it hasn’t done so for at least 38 minutes.