Answers.Body: <p>The PHP CLI method is one of several ways to run all scheduled jobs automatically.  If you haven't <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs" rel="nofollow">configured a cron job</a>, the scheduled jobs will not run on their own.  Because nothing is actually happening, there will be no log entries to say that your cron isn't set up.</p>
  
  <p>Select <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-Command-lineSyntaxforRunningJobs" rel="nofollow">one of the methods</a> for triggering scheduled jobs from the command line.  Since you're on Drupal, you might try the Drush method because it's fairly easy.  Regardless, if for some reason your command fails, you should get some sort of message that you can use for finding more specific help.</p>
  
  <p>(A tip for testing: make sure you have at least one scheduled job enabled and set to run "Always".  If everything's hourly or daily, it's hard to test if it has executed.)</p>
  
  <p>Once you find a command that works, set it up as a cron job so it runs every 5-15 minutes.  At that point, you'll be able to go back and check if the scheduled jobs are working as expected.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-15T01:42:32.690Z
Answers.LastActivityDate: 2015-11-15T01:42:32.690Z
Answers.UserDisplayName: Andie Hunt
Answers.Body: <p>If you are on Linux and using Drush you can set a cron job:</p>
  
  <p>Example, create a file as root under <code>/etc/cron.d/run-civi-jobs</code> </p>
  
  <p>With contents:</p>
  
  <pre><code>*/15 * * * * www-data cd path/to/drupal &amp;&amp; /usr/local/bin/drush --quiet civicrm-api -u 1 job.execute
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-23T20:05:51.907Z
Answers.LastActivityDate: 2017-04-23T20:05:51.907Z
Answers.UserDisplayName: JorgeeFG
Body: <p>I can only get scheduled jobs to run manually, with the "Execute now" button.   Hourly won't work let alone with an external method like php.cli method.    Is there a way to troubleshoot this?   I just started logging civi errors to drupal watchdog....so hopefully I'll have more info soon.</p>
  
  <p>Thank you</p>
  
Tags: <cron-job>
Title: Scheduled Jobs not running
ThreadText: # Scheduled Jobs not running
  
  (Asked by: username_0 on 2015-11-14)
  
  I can only get scheduled jobs to run manually, with the "Execute now" button. Hourly won't work let alone with an external method like php.cli method. Is there a way to troubleshoot this? I just started logging civi errors to drupal watchdog....so hopefully I'll have more info soon.
  
  Thank you
  
  **Tags:** cron-job
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-11-15. Score: 2
  
  The PHP CLI method is one of several ways to run all scheduled jobs automatically. If you haven't [configured a cron job](http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs), the scheduled jobs will not run on their own. Because nothing is actually happening, there will be no log entries to say that your cron isn't set up.
  
  Select [one of the methods](http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-Command-lineSyntaxforRunningJobs) for triggering scheduled jobs from the command line. Since you're on Drupal, you might try the Drush method because it's fairly easy. Regardless, if for some reason your command fails, you should get some sort of message that you can use for finding more specific help.
  
  (A tip for testing: make sure you have at least one scheduled job enabled and set to run "Always". If everything's hourly or daily, it's hard to test if it has executed.)
  
  Once you find a command that works, set it up as a cron job so it runs every 5-15 minutes. At that point, you'll be able to go back and check if the scheduled jobs are working as expected.
  
  
  ---
  
  ### Answer by username_2 on 2017-04-23. Score: 0
  
  If you are on Linux and using Drush you can set a cron job:
  
  Example, create a file as root under `/etc/cron.d/run-civi-jobs`
  
  With contents:
  
  ```
  */15 * * * * www-data cd path/to/drupal && /usr/local/bin/drush --quiet civicrm-api -u 1 job.execute
  
  ```
  
  
  ---
  
  