I am trying to understand how the Task API works. That page does not seem to explain how things work down to the level of the actual cron function of a plugin getting called.
I'm looking at the inactive user cleanup plugin.I have two sites running, A is cleaning up users as expected, B is not.
I have added echo statements in tool_inactive_user_cleanup_cron() in lib.php of the plugin. When I run cron manually on A, I get all the debug output I have inserted on the site. When I run it on B, all I get is:
Execute scheduled task: Inactive User Cleanup (tool_inactive_user_cleanup\task\tool_inactive_user_cleanup_task) ... started 10:38:17. Current memory use 21.3Mt. ... used 0 dbqueries ... used 0.0062000751495361 seconds Scheduled task complete: Inactive User Cleanup (tool_inactive_user_cleanup\task\tool_inactive_user_cleanup_task)