What should I use for simple cron jobs management in PHP project? -


i want simple cron-like management in php project there things have:

  1. php job worker plain script placed in subdir inside project directory
  2. there subtree /cron/daily, /cron/monthly ... etc in project root contains workers
  3. there no need mess crontab every worker added.
  4. all scripts run run-parts corresponding frequency, , respective output logged separate files /var/log/projectname/cron/daily/somescript.log
  5. would great have /cron/daemon dir containing scripts should run forever (minutely) no more 1 instance

i've had experience kind of scheduling system in 1 project , loved it. provides number of neat things:

  • jobs project scripts , reside in project dir, tracked git.
  • no need crontab messing.
  • logs sorted out.
  • daemons easy build.

i use /bin/run-parts on project /cron subdirs, didn't manage split logs wanted. , splitted logging nice feature have.

so, thought kind of systems created many times before, there ready use solution php project? it's more smart run-parts equivalent. should write once again?

p.s. there many more job-queue specific solutions gearman. great, quesion project cron jobs lightweight solution.

we've taken different approach @ current job. use jenkins (formerly hudson) our php related scheduling needs. it's nice because can leverage existing infrastructure notifications (jabber, email, etc), , sits along side our other build jobs code releases. there's ability watch console output in real time, transcripts of every run, etc.

i documented way organize our php jobs can leverage our application framework cli, how jenkins interfaces jobs.

here's post organizing php batch jobs use jenkins or hudson:

http://blog.shupp.org/2011/03/15/organizing-php-batch-jobs/


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -