Developers need to be able to determine whether their code is being run by a user or during cron. Potential use cases are error logging/notification, node access permissions, calculation iterations, and probably many more. Here is a specific need in Domain Access: #1851400: Node grants are incorrect during cron runs potentially causing a fatal exception in Entity->save().

This patch creates a global in, then sets it to TRUE during the cron runs.

drupal-add-run-cron-flag-0.patch2.15 KBeosrei
FAILED: [[SimpleTest]]: [PHP 5.4 MySQL] Unable to apply patch drupal-add-run-cron-flag-0.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]


Status:Needs review» Needs work

The last submitted patch, drupal-add-run-cron-flag-0.patch, failed testing.