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.
In a developer site you typically want to disable certain jobs that are only useful in production. Would like to know, is there is a way to disable jobs in settings.php?
Comment | File | Size | Author |
---|---|---|---|
#2 | elysia_cron-update_docs-2449719-2.patch | 1.12 KB | sumthief |
Comments
Comment #1
sumthief CreditAttribution: sumthief as a volunteer and at DrupalJedi commentedHello @ñull
There is already this possibility exists. Please look function
elysia_cron_is_job_disabled()
for details.This function initially checks if variable with specific name exists than get value of this variable.
Schema which used to build this name is:
'ec_' . _ec_get_name($job) . '_d';
. Also you can see function_ec_get_name()
to investigate how it build job name (Usually if you are using Drupal 7 version and cron name less than 120 symbols you can skip this moment).For example you can use this construction in your settings.php:
Comment #2
sumthief CreditAttribution: sumthief as a volunteer and at DrupalJedi commentedHere is patch which updates API.txt file and describe how we can make it via settings.php.
Comment #4
kala4ek