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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Suggestion: Unified cron job?
Pages: [1]

Author Topic: Suggestion: Unified cron job?  (Read 1140 times)

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Suggestion: Unified cron job?
July 02, 2010, 06:09:36 am
This has probably been a discussion in the past but here's the premise


CiviCRM requires a lot of cron jobs (update address, sending email, catch bounces, etc)

The nature of each cron job is very different obviously (some should be run often than others).

I was thinking instead of having a whole bunch of cron jobs, can we create a job scheduler and let it be the only cron that needs to be run?

THe scheduler cron would be run on a 5 minutes interval, but inside of the scheduler, it can lookup timestamps and determine which job needs to be fired and the interval of each individual jobs can be configured through CiviCRM,

Moreover, we can even provide a hook into the scheduler cron so developers can also add additional jobs if they wish.


Let me know what you guys think,



Chang

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Suggestion: Unified cron job?
July 02, 2010, 08:17:26 am
Probably overkill, unless that's already provided by drupal/joomal ?

and then we hook on their cronjob ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Suggestion: Unified cron job?
July 02, 2010, 10:11:38 am

i have not used it, but u should check hudson: http://hudson-ci.org/

i think the unix philosophy of having one script to do one job serves a project like CiviCRM very well (IMO). We should use another open source project (like hudson or something) to do the job scheduling aspect

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Re: Suggestion: Unified cron job?
July 02, 2010, 12:33:21 pm
But hudson is OS based which means shared hosts can't use it, is there anything that's on the application level?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Suggestion: Unified cron job?
July 02, 2010, 09:32:58 pm

no idea, u might wanna do a web search. please report back your findings

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Suggestion: Unified cron job?

This forum was archived on 2017-11-26.