Answers.Body: <p>I'm assuming you've seen this Wiki page: <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs" rel="nofollow noreferrer">https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs</a></p>
  
  <p>If I'm reading your question correctly, I think you need to set up the cron job so it runs every so often, e.g. every 15 minutes:</p>
  
  <pre><code>*/15 * * * * &lt;your cron job command here&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-10T17:28:47.100Z
Answers.Text: i was thinking id do it every minute, in case some jobs need to be run minutely. is this something that has to be done manually, or should civicrm be managing its own cron jobs/tasks? Because currently, no civicrm cron jobs are running on my plugin, even though they are set up to run
Answers.UserDisplayName: heliotrope
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-10T23:47:16.307Z
Answers.Text: OK, so here's my layman's understanding of how it works. In CiviCRM >> Administer >> System Settings >> Scheduled Jobs you tell Civi which jobs you want to run and when. Then you need a Cron Job that will actually trigger the CiviCRM jobs ... this cron job then runs, say, every fifteen minutes and when it does, it nudges CiviCRM to check which of its jobs need to be run.
Answers.UserDisplayName: MtnPavlas
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-10T23:49:15.953Z
Answers.Text: When the cron job runs, it goes something like this: "Hey, this 'Update membership statuses' job ... it only needs to run once/day ... did it run today yet? Oh, it did, then leave it alone. What about this 'Fetch bounces' one? It's supposed to run every hour and last time it ran was 75 minutes ago... OK, run it now, then." I'm no cron expert, but I'd imagine if you run it every minute, you may overwhelm your system so ask yourself whether it's really necessary.
Answers.UserDisplayName: MtnPavlas
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-10T16:23:23.837Z
Answers.LastActivityDate: 2017-07-10T16:23:23.837Z
Answers.UserDisplayName: MtnPavlas
Body: <p>I've recently setup civicrm as a plugin on my wordpress site, and I can't seem to shake the 'Cron Not Running' Warning.</p>
  
  <p>Does the <code>job.execute</code> cron job need to be running in order to run all other scheduled jobs? </p>
  
  <p>I'm on a digital ocean ubuntu server, and each time i run</p>
  
  <pre><code>sudo -u www-data -- /usr/local/bin/wp --user=cronuser --
  url=https://mysite.org --path=/var/www/html civicrm api job.execute 
  auth=0
  </code></pre>
  
  <p>it will run the scheduled tasks, and the system warning will go away(for an hour or so) but this is kind of a 1-off behavior, and it doesn't continue to run any tasks that have already been set up. Eventually, the warning comes back.</p>
  
  <p>Do I need to do something like 
  <code>crontab -e</code> and then:</p>
  
  <pre><code>* * * * * sudo -u www-data -- /usr/local/bin/wp --user=cronuser --
  url=https://mysite.org --path=/var/www/html civicrm api job.execute 
  auth=0
  </code></pre>
  
  <p>I'm new to linux administration and I don't want to mess anything up by "guessing" what will work.</p>
  
Tags: <cron-job><cron>
Title: Setting up Cron Jobs to run Initially(Cron Not Running)
ThreadText: # Setting up Cron Jobs to run Initially(Cron Not Running)
  
  (Asked by: username_0 on 2017-07-09)
  
  I've recently setup civicrm as a plugin on my wordpress site, and I can't seem to shake the 'Cron Not Running' Warning.
  
  Does the `job.execute` cron job need to be running in order to run all other scheduled jobs?
  
  I'm on a digital ocean ubuntu server, and each time i run
  
  ```
  sudo -u www-data -- /usr/local/bin/wp --user=cronuser --
  url=https://mysite.org --path=/var/www/html civicrm api job.execute 
  auth=0
  
  ```
  
  it will run the scheduled tasks, and the system warning will go away(for an hour or so) but this is kind of a 1-off behavior, and it doesn't continue to run any tasks that have already been set up. Eventually, the warning comes back.
  
  Do I need to do something like
  `crontab -e` and then:
  
  ```
  * * * * * sudo -u www-data -- /usr/local/bin/wp --user=cronuser --
  url=https://mysite.org --path=/var/www/html civicrm api job.execute 
  auth=0
  
  ```
  
  I'm new to linux administration and I don't want to mess anything up by "guessing" what will work.
  
  **Tags:** cron-job, cron
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-07-10. Score: 0 | Accepted answer
  
  I'm assuming you've seen this Wiki page: <https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs>
  
  If I'm reading your question correctly, I think you need to set up the cron job so it runs every so often, e.g. every 15 minutes:
  
  ```
  */15 * * * * <your cron job command here>
  
  ```
  
  > **Comments:**
  > **username_0**: i was thinking id do it every minute, in case some jobs need to be run minutely. is this something that has to be done manually, or should civicrm be managing its own cron jobs/tasks? Because currently, no civicrm cron jobs are running on my plugin, even though they are set up to run  
  > **username_1**: OK, so here's my layman's understanding of how it works. In CiviCRM >> Administer >> System Settings >> Scheduled Jobs you tell Civi which jobs you want to run and when. Then you need a Cron Job that will actually trigger the CiviCRM jobs ... this cron job then runs, say, every fifteen minutes and when it does, it nudges CiviCRM to check which of its jobs need to be run.  
  > **username_1**: When the cron job runs, it goes something like this: "Hey, this 'Update membership statuses' job ... it only needs to run once/day ... did it run today yet? Oh, it did, then leave it alone. What about this 'Fetch bounces' one? It's supposed to run every hour and last time it ran was 75 minutes ago... OK, run it now, then." I'm no cron expert, but I'd imagine if you run it every minute, you may overwhelm your system so ask yourself whether it's really necessary.  
  
  ---
  
  