News for hackers. Stuff that matters.
Re:Ask HN: Job Scheduling as a service by stephenr on Monday November 20, 2017 @04:52AM (#15738851)
You want cron, as a service?

Shit on a stick doesn't anyone actually host anything themselves anymore?

Re:Ask HN: Job Scheduling as a service by mani-smhack on Monday November 20, 2017 @06:36AM (#15739217)
I need a scheduler where i can dynamically ( via api ) schedule a job , with the admin UI to manage the jobs .

I Think these are not part of application development and it can be offloaded to hosted services .

Re:Ask HN: Job Scheduling as a service by bpicolo on Monday November 20, 2017 @10:39AM (#15740639)
There are a lot of frameworks for this in various languages, depends on what you're doing - like sidekiq in ruby and hangfire in dotnet

https://github.com/mperham/sidekiq https://www.hangfire.io/

Re:Ask HN: Job Scheduling as a service by caraga on Monday November 20, 2017 @06:38AM (#15739228)
Jenkins has scheduled jobs and an UI. It can also be accessed via API. https://jenkins.io/
Re:Ask HN: Job Scheduling as a service by mani-smhack on Monday November 20, 2017 @06:42AM (#15739240)
This is not with respect to devops or build .

My app has schedule functionality for example a scheduled report , so if it where like a webhook call then i dont want to waste the cpu cycle ,now i am using quartz scheduler in my java app .

Re:Ask HN: Job Scheduling as a service by aprdm on Monday November 20, 2017 @10:46AM (#15740693)
Jenkins isn't just for devops or build.
Re:Ask HN: Job Scheduling as a service by dozzie on Monday November 20, 2017 @06:16AM (#15739163)
We do, but it's not sexy, because it just gets the job done and you can't really brag about not having bugs or troubles.
Re:Ask HN: Job Scheduling as a service by ddorian43 on Monday November 20, 2017 @06:39AM (#15739232)
But cron isn't highly available/distributed with consistent state/scheduling
Re:Ask HN: Job Scheduling as a service by stephenr on Monday November 20, 2017 @06:50AM (#15739271)
Run cron on all your boxes, have them pull a job at a time from the database. Or shit, go full tilt with a clustered Redis job queue.

All of these are better options than "embed the entire job info in a URL and hand it off to a remote scheduling service".

Re:Ask HN: Job Scheduling as a service by scarface74 on Monday November 20, 2017 @07:35AM (#15739451)
Re:Ask HN: Job Scheduling as a service by stephenr on Monday November 20, 2017 @07:52AM (#15739527)
The user doesn't need a queue though. They just need a process to find posts with a publish date of <= now that aren't published and publish them. That's a one line indempotent sql update statement in any decently architected application.
Re:Ask HN: Job Scheduling as a service by scarface74 on Monday November 20, 2017 @08:24AM (#15739688)
This was the other part of the comment I replied to:

Run cron on all your boxes, have them pull a job at a time from the database. Or shit, go full tilt with a clustered Redis job queue.

You're solving for the example but the original poster noted multiple jobs.