Cron lock statistics

Administration tools ::: tool_lockstats
Maintained by Catalyst IT, Brendan Heywood, Nicholas Hoobin
A lock statistics admin tool, specifically tailored to report on cron task timings. This tool exposes which tasks are currently running and where, and also shows a detailed history of how long each task has taken in the past.
Latest release:
265 sites
22 downloads
35 fans
Current versions available: 2

If you've ever had issues with cron being slow, or wanted to get insight into what cron was doing *last night* after the fact, then this plugin is a great tool to have in your toolbox. It will tell you:

  • What cron tasks are running, right now, and what boxes they are running on (great if you have multiple front ends or auto scaling cron clusters)
  • Clearly show which tasks are problematic / slow
  • A full history of what tasks have run and when, along with timing statistics
  • For big / slow tasks these are stored with more detail so you can also use this to see improvement in cron performance after code changes or infrastructure changes

For more details including the installation and configuration steps please see:

https://github.com/catalyst/moodle-tool_lockstats#tool_lockstats

Screenshots

Screenshot #0
Screenshot #1

Contributors

Catalyst IT (Lead maintainer)
Brendan Heywood: Solutions Architect
Nicholas Hoobin: Lead developer
Please login to view contributors details and/or to contact them

Comments RSS

Erakutsi iruzkinak
  • Plugins bot
    az., 2017(e)ko uzt.ren 5(e)an, 14:50(e)tan
    Approval issue created: CONTRIB-6966
  • David Mudrák
    or., 2017(e)ko uzt.ren 7(e)an, 19:56(e)tan

    Thanks for sharing this plugin! I found it really useful, well designed and nicely implemented. It actually addresses the exact issues with cron and scheduled tasks we've been experimenting on our own sites.

  • Ricardo Caiado
    ar., 2018(e)ko api.ren 3(e)an, 08:34(e)tan
    Is there any moodle 3.4+ update?
  • Bert van der Hooft
    al., 2019(e)ko aza.ren 4(e)an, 23:21(e)tan
    Left plugin unattended? Doesn't work in 3.7
  • Bei Chapman
    lr., 2020(e)ko mai.ren 16(e)an, 01:18(e)tan
    I just tried to install it into my 3.6.3 moodle dev, and got this error. Does it mean something not right in my environment or the plugin just doesn't work in 3.6?

    Thanks,
    Bei

    === error ===
    Debug info: Errors found in XMLDB file: PATH attribute does not match file directory: admin/tool/lockstats/db
    Error code: ddlxmlfileerror

    Stack trace:

    line 352 of /lib/ddl/database_manager.php: ddl_exception thrown
    line 368 of /lib/ddl/database_manager.php: call to database_manager->load_xmldb_file()
    line 599 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
    line 1852 of /lib/upgradelib.php: call to upgrade_plugins()
    line 694 of /admin/index.php: call to upgrade_noncore()
  • Ricardo Caiado
    ig., 2025(e)ko ots.ren 23(e)an, 00:07(e)tan
    Is there any moodle 4.5+ update?
  • Brendan Heywood
    og., 2025(e)ko mar.ren 20(e)an, 19:21(e)tan
    This plugin should be consider as deprecated, everything it does is now built into core directly: seeing running tasks, seeing their run time and logs etc
Please login to post comments