CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Cron starting civimail.cronjob.php every five mins, "For real!?!?"
Pages: [1]

Author Topic: Cron starting civimail.cronjob.php every five mins, "For real!?!?"  (Read 634 times)

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Cron starting civimail.cronjob.php every five mins, "For real!?!?"
October 06, 2010, 10:46:30 am
I am having difficulty understanding the logic behind:

Code: [Select]
*/5 * * * * php absolute_path_to_civimail.cronjob.php
( Found at: http://en.flossmanuals.net/CiviCRM/SystemConfiguration )

In my mind, I see that ending up running MANY instances of civimail.cronjob.php at the same time, turning into a complex nightmare.

Or is civimail.cronjob.php coded that it will not run longer than 5 mins? or or or?

Please help me understand the logic behind this... once understood I will activate the cron job on our server.
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Cron starting civimail.cronjob.php every five mins, "For real!?!?"
October 06, 2010, 11:22:34 am
Hey, feel free to put whatever the frequency you want.

Otherwise, the cronjob has a lock, to prevent loads of crons running together.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Cron starting civimail.cronjob.php every five mins, "For real!?!?"
October 06, 2010, 11:58:44 am
Quote from: xavier on October 06, 2010, 11:22:34 am
Otherwise, the cronjob has a lock, to prevent loads of crons running together.

Aaaahhh, that makes MUCH MORE SENSE! Thank you, xavier!!!

Might should clarify in the docs that bunches of cron tasks are not all going to be fighting at once for resources, mutex semaphore, bla bla bla... I do not know what all protection is in place, so someone more knowledgeable than I please!  :-*
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Cron starting civimail.cronjob.php every five mins, "For real!?!?"

This forum was archived on 2017-11-26.