Similar to e.g.:

$civicrm_setting['Directory Preferences']['extensionsDir'] = '/Applications/MAMP/htdocs/Louise/git-7/sites/semper-it.local/civicrm/extensions';

Can I do something that sets all scheduled jobs to => disabled?


There's a new feature in the latest 4.7 that allows you to configure your site as non-production, which should do a bunch of things like this.


If you're using an older version of CiviCRM, you can manually disable all the jobs with this sql:

UPDATE civicrm_job SET is_active = 0;

But you'd want to make sure (manually) that some don't get auto-enabled (e.g. via the managed record feature in an extension).

Ultimately, the safest way to run a non-production site is in some kind of container that doesn't allow outgoing requests/emails.

  • Yes - but what about 4.6ers? Nov 21 '17 at 21:44
  • Yeah, that would need a different approach, and I don't think there are any civicrm.settings.php entries that would work either, since those are from 4.7. You'd probably want a little extension to do this, to just run a little sql that disables all the extensions, something like: UPDATE civicrm_job SET is_active = 0;
    – Alan Dixon
    Nov 22 '17 at 22:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.