Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
cron system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2014 at 21:42 UTC
Updated:
29 Jul 2014 at 23:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
znerol commentedComment #3
dawehnerFirst note: Is there a reason this is not part of core but part of system module? ... It would be also nice if it would be part of a "EventSubscriber" namespace, just for consistency.
let's add another pair of braces around REQUEST_TIME - $cron_list, to be sure it works as we want.
Comment #4
znerol commentedThanks for the review.
I feel that it should be part of the module because it accesses configuration defined by the module (
system.cron/threshold.autorun).Yes indeed. I saw
Drupal\system\SystemConfigSubscriberand was mislead into doing it like that one. That is probably not the best example.Let's just replace those convoluted conditions with something which is more readable.
Comment #5
znerol commentedComment #6
dawehnerAwesome!
Comment #7
catchI still think we should do #1599622: Run poormanscron via a non-blocking HTTP request but this is good clean-up independent of that issue.
Committed/pushed to 8.x, thanks!