News for hackers. Stuff that matters.
Re:Writing a cron job microservice with Serverless and AWS L... by chrisp_dc on Monday January 30, 2017 @05:05PM (#13525477)
Sounds like you might be better off using Jenkins than roll your own. I use Jenkins over cron when I want easier auditing & authentication. I got the idea to use Jenkins as a 1-size fits all hammer from https://www.cloudbees.com/blog/drop-cron-use-jenkins-instead...
Re:Writing a cron job microservice with Serverless and AWS L... by mickael-kerjean on Monday January 30, 2017 @05:44PM (#13525808)
Great to see I'm not the only one using Jenkins to look after crown jobs!

However, it's to me way more than simply auditing & auth. The main advantage I found with Jenkins are:

- you get a central place for all the cron jobs. That comes with all the advantages the most important one being nobody has to remember on which server is this freaking script

- making an update can easily be done

- running the task can even be done by non technical people.

- easy backup

- when a script become deprecated you can easily remove it and you're not very likely to let it there running for nothing forever

- easy documentation for you tasks

There's probably more but Jenkins is definitely awesome for cron jobs

Re:Writing a cron job microservice with Serverless and AWS L... by philip1209 on Monday January 30, 2017 @07:20PM (#13526337)
I've done this many times in the past. Add an authenticated "cron" endpoint, and have a jenkins job curl it every X seconds. It's not perfect, but it's an easy way to see log, alert Pagerduty, etc.
Re:Writing a cron job microservice with Serverless and AWS L... by flukus on Tuesday January 31, 2017 @12:35AM (#13528002)
Using a CI server as a scheduler? How is that at all the right tool for the job?