Answers.Body: <p>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.</p>
  
  <p><a href="https://docs.civicrm.org/sysadmin/en/latest/misc/staging-production/" rel="nofollow noreferrer">https://docs.civicrm.org/sysadmin/en/latest/misc/staging-production/</a></p>
  
  <p>If you're using an older version of CiviCRM, you can manually disable all the jobs with this sql:</p>
  
  <p><code>UPDATE civicrm_job SET is_active = 0;</code></p>
  
  <p>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).</p>
  
  <p>Ultimately, the safest way to run a non-production site is in some kind of container that doesn't allow outgoing requests/emails.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-21T21:44:58.763Z
Answers.Text: Yes - but what about 4.6ers?
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-22T22:06:02.190Z
Answers.Text: 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;`
Answers.UserDisplayName: Alan Dixon
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-21T21:22:57.563Z
Answers.LastActivityDate: 2017-11-22T22:09:06.317Z
Answers.LastEditDate: 2017-11-22T22:09:06.317Z
Answers.UserDisplayName: Alan Dixon
Body: <p>Similar to e.g.:</p>
  
  <pre><code>$civicrm_setting['Directory Preferences']['extensionsDir'] = '/Applications/MAMP/htdocs/Louise/git-7/sites/semper-it.local/civicrm/extensions';
  </code></pre>
  
  <p>Can I do something that sets all scheduled jobs to => disabled?</p>
  
Tags: <scheduled-job><civicrm.settings.php>
Title: How to disable all scheduled jobs in civicrm.settings.php?
ThreadText: # How to disable all scheduled jobs in civicrm.settings.php?
  
  (Asked by: username_0 on 2017-11-21)
  
  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?
  
  **Tags:** scheduled-job, civicrm.settings.php
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-21. Score: 1 | Accepted answer
  
  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.
  
  <https://docs.civicrm.org/sysadmin/en/latest/misc/staging-production/>
  
  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.
  
  > **Comments:**
  > **username_0**: Yes - but what about 4.6ers?  
  > **username_1**: 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;`  
  
  ---
  
  