When I configure a Master Thread to have a pool of Queue Threads (say 8) and give a Queue Lease Time (say 7200), child threads do not inherit this value from the parent thread configuration settings. My children were getting a very small lease time value ...

I have debugged this by inserting a watchdog() call into ultimate_cron_cronapi() around line 392:

        $lease_time = isset($hook['settings']['queue_lease_time']) ? $hook['settings']['queue_lease_time'] : variable_get('ultimate_cron_queue_lease_time', ULTIMATE_CRON_QUEUE_LEASE_TIME);
        watchdog('webextracts_project:debug:claim', $lease_time);
        $lease_time = $webextracts_force_lease_time = 7200;
        $item = $queue->claimItem($lease_time);

In watchdog I see the Master Thread gets a lease time of 7200, all child threads get a different value that is much smaller.

The expected behavior I want is that a child thread respects the master thread lease time so that child threads dont walk all over eachother if processes haven't completed yet.

Comments

gielfeldt’s picture

Fix commited to 7.x-1.x

gielfeldt’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.