My idea is:
Our cron was out for some time. Users did not notice, campaigns were not sent.
This should be a highly critical error if cron is not running on Mautic, because important things will not work.
The idea is to add 1 task to the cron runner that writes a timestamp to a file or DB.
In the interface if admins or users then login a small check is done if the timestamp in this file is recent.
If this is longer than X minutes/hours/days(maybe configurable)
An error is shown to the user:
“There was an issue with the CRON jobs - please contact an administrator”.
I think these groups of people would benefit from this idea:
Everybody using Mautic with cronjobs installed.
Why I think they would benefit from this idea:
Any code or resources to support this idea:
The moment cron starts failing or tje jobs are accidentally disabled, users immediately know. No silent failing.
Are you willing to work on this idea?:
yes.
What skills and resources do you need to explore this further?
I know php, but have not enough familiarity with Mautic yet.
Some pointers would be helpful.
I think I would need to know
- To save this timestamp in File or DB?
- where cronjobs are defined
- In the interface where it’s best to show this alert.
- Do we make this configurable (the treshold)?