Display which cron jobs aren't running

Bug #987604 reported by Kristina Hoeppner
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Triaged
Low
Unassigned

Bug Description

This is a follow-up to bug # 987115.

When cron is running partially, it should be displayed:

* Which ones have failed.
* When it last ran fully.
* When it last ran partially/with skipped items.

Changed in mahara:
status: New → Triaged
importance: Undecided → Low
Melissa Draper (melissa)
description: updated
Melissa Draper (melissa)
summary: - Dsiplay which cron jobs aren't running
+ Display which cron jobs aren't running
Revision history for this message
Robert Lyon (robertl-9) wrote :

This type of information is recorded in the error log - would it be a better idea record this info in a file (or both places)?

So there could be a file in dataroot called: log/cron.log where it could record information and that file could then be read into the admin section somewhere - the log file could keep only so many lines maybe.

Revision history for this message
Aaron Wells (u-aaronw) wrote :

The "cron is not running" message comes from this:

$data['cronrunning'] = !record_exists_select('cron', 'nextrun IS NULL OR nextrun < CURRENT_DATE');

So, the cheap and easy way of resolving this issue would be to check which crons are returned by that query, and list them in the cronnotrunning message.

In the long run, we should probably file a feature request for a big fancy admin report that shows you all the cron jobs, when they're scheduled to run, when they last ran, and that lets you turn them on and off and reschedule them.

ANOTHER thing to note -- the current code doesn't check all the plugin cron tables, like activity_cron, interaction_cron, etc. So, the cron for one of the plugins could be broken, and there'd be no warning to the admin.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.