Re:We Don’t Run Cron Jobs (2016)
by TheSoftwareGuy on Monday August 20, 2018 @09:51PM
(#17806177)
You could even write a cron job to clean up the crontab
[ Parent
| on HN ]
Or you could use at(1) or batch(1) to invoke the job once. That seems significantly easier and less error prone than trying to clean up crontab.
at(1) is great, but you'll still have the problem of a different environment to cron (it copies most of your environment variables and working directory).
Or use Puppet/Salt/Chef/ansible to manage the file automatically
Re:We Don’t Run Cron Jobs (2016)
by toomuchtodo on Monday August 20, 2018 @10:29PM
(#17806386)
I've seen this done previously. It gets arduous to maintain a large list of cron jobs, teach everyone how to add new ones, rebuild the cron box and redeploy on updates to config management.
Just use Jenkins, until you outgrow Jenkins. Then use a distributed scheduler.
Can you recommend one?
We recently had to implement a prototype in house, not that easy as I thought it would be, but we could not find a good solution, e.g. handle 100k jobs, long term (never expiring), short term (depends on an entity's live cycle), high available.
Thanks.
Re:We Don’t Run Cron Jobs (2016)
by toomuchtodo on Tuesday August 21, 2018 @09:53AM
(#17809539)
Kubernetes if you're a containers first shop, Hashicorp's Nomad if you're not just containers (can run binaries, etc).
Re:We Don’t Run Cron Jobs (2016)
by spiffytech on Tuesday August 21, 2018 @07:54AM
(#17808779)
Kubernetes does Cron jobs.