Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
cron system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2022 at 18:52 UTC
Updated:
13 Dec 2022 at 19:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
poker10 commentedAdding a patch which adds a new settings.php config variable to allow sites override this cron lock expiration timeout. Interdiff is with the patch #9 from the parent issue.
I do not think we can easily create an automated test for this, so setting as Needs manual testing. Also this would need a change record.
Comment #3
mcdruid commentedDraft CR: https://www.drupal.org/node/3324216
I think this looks good.
One thought; do we want to adjust the time limit that's set just before this too?
Noting that PHP's time limit does not count elapsed wall time and that D9 still has the same 240s limit:
https://git.drupalcode.org/project/drupal/-/blob/9.4.8/core/lib/Drupal/C...
I think that would definitely be one for a follow-up and backport (if none already exists) but seems a little odd that this is still there and hard-coded. Because it only counts PHP execution time, it's probably irrelevant in most cases anyway (unless anyone's mining crypto in PHP on cron!).
Comment #10
mcdruid commentedI did a little manual testing of this with Xdebug to ensure that a cron lock is now acquired with a 900s timeout.
Thank you!
Comment #11
poker10 commentedProbably these two issues are related to the potential next steps:
#2183483: Cron lock time can be outrun by max execution time (D7 issue)
#547998: Make cron time limit a variable (D9 issue)