How do you deploy cron jobs to production?

后端 未结 9 1147
北海茫月
北海茫月 2021-02-01 18:42

How do people deploy/version control cronjobs to production? I\'m more curious about conventions/standards people use than any particular solution, but I happen to be using git

9条回答
  •  不要未来只要你来
    2021-02-01 19:28

    You can probably use something like CFEngine/Chef for deployment (it can deploy everything - including cron jobs)

    However, if you ask this question - it could be that you have many production servers each running large number of scheduled jobs. If this is the case, you probably want a tool that can not only deploy jobs, but also track success failure, allow you to easily look at logs from the last run, run statistics, allow you to easily change the schedule for many jobs and servers at once (due to planned maintenance...) etc.

    I use a commercial tool called "UC4". I don't really recommend it, so I hope you can find a better program that can solve the same problem. I'm just saying that administration of jobs doesn't end when you deploy them.

提交回复
热议问题