Active
Project:
Drupal core
Version:
main
Component:
cron system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2019 at 09:51 UTC
Updated:
7 Jan 2020 at 17:18 UTC
Jump to comment: Most recent
Although max_execution_time is set to 300 in php.ini, its picking 240 because it's hardcoded in the core causing a fatal error.
In docroot/core/lib/Drupal/Core/Cron.php
// Try to allocate enough time to run all the hook_cron implementations.
Environment::setTimeLimit(240);
The time limit should be dynamic.
Comments
Comment #2
cilefen commentedIf there are custom cron tasks failing, you may benefit from queuing the operations.
Comment #3
rajeevgoleThank you Cliefen for suggesting the QueueWorker. I have fixed the issue by implementing the same as of now.
Comment #4
avpaderno