Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
After increasing the Maximum number of launcher threads
at admin/config/system/cron/settings/launcher
the Run in thread
options for an individual cron job remain as -- Any --, -- Fixed -- & 1
Steps to reproduce
- Increase
Maximum number of launcher threads
atadmin/config/system/cron/settings/launcher
- Check
Run in thread
options for an individual cron job
Proposed resolution
$max_threads = isset($this->configuration['launcher']['max_threads']) ? $this->configuration['launcher']['max_threads'] : 1;
Should be altered to use the main module configuration not the individual cron job configuration
Comment | File | Size | Author |
---|---|---|---|
#7 | ultimate_cron-3277629-7.patch | 4.21 KB | keszthelyi |
Issue fork ultimate_cron-3277629
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
intrafusionI have made a simple issue fork which pulls max_threads out of the global config via
\Drupal::config('ultimate_cron.settings')->get('launcher.max_threads');
This is a preliminary fix to make sure the correct config is being pulled through, but the final fix will probably need dependency injection
Comment #5
golddragon007 CreditAttribution: golddragon007 at European Commission and European Union Institutions, Agencies and Bodies, Petend commentedI pushed here a small thread fix also, to be able to use multiple threads. Conditions:
You have to set for every cron job one by one which thread it must run.
You must use wget on the cron URL with ?thread=X where X is a positive round number, like 1,2,3,4...
Comment #6
DamienMcKennaComment #7
keszthelyi CreditAttribution: keszthelyi at European Commission and European Union Institutions, Agencies and Bodies commentedPatch from branch
8.x-2.x
at commit58439194