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 bootstrap.inc, then sets it to TRUE during the cron runs.

Files: 
CommentFileSizeAuthor
drupal-add-run-cron-flag-0.patch2.15 KBeosrei
PASSED: [[SimpleTest]]: [MySQL] 48,749 pass(es).
[ View ]