What should I use for simple cron jobs management in PHP project? -
i want simple cron-like management in php project there things have:
- php job worker plain script placed in subdir inside project directory
- there subtree /cron/daily, /cron/monthly ... etc in project root contains workers
- there no need mess crontab every worker added.
- all scripts run run-parts corresponding frequency, , respective output logged separate files /var/log/projectname/cron/daily/somescript.log
- 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:
Comments
Post a Comment