Problem/Motivation

Default drupal cron lock acquire time id 900 seconds which is not sufficient for long running queue workers which requires more than 15 minutes of execution time.

Please refer core/lib/Drupal/Core/Cron.php file

$this->lock->acquire('cron', 900.0)

Steps to reproduce

Create a cron job to run using queue workers which requires more than 15 minutes of execution. After 15 minutes same job will be picked again for execution and previous execution terminates.

Proposed resolution

There should be way to increase this lock acquire timeout.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#2 cron-acquire-time-3568692-1.patch524 byteskawaljeet singh

Comments

kawaljeet singh created an issue. See original summary.

kawaljeet singh’s picture

StatusFileSize
new524 bytes

Creating a patch to increase lock acquire time to 1800 seconds.

cilefen’s picture

Priority: Critical » Normal
Status: Needs work » Postponed (maintainer needs more info)
Issue tags: +Possible duplicate

This is possibly a duplicate of #547998: Make cron time limit a variable. Can you verify?