News for hackers. Stuff that matters.
Re:Show HN: Posthook – Job Scheduling as a Service by nodesocket on Tuesday June 19, 2018 @11:31AM (#17347598)
Does Posthook support recurring scheduling (i.e. every 15 minutes)?

Also, is there retry logic? I.E. 3 retries, delay 60 seconds between retries?

Re:Show HN: Posthook – Job Scheduling as a Service by cgenuity on Tuesday June 19, 2018 @11:45AM (#17347710)
It does not support recurring scheduling at the moment.

Right now the retry logic is just one retry 5 seconds after the first failure. At which point the hook gets set to a failed status and failure notifications get sent out. Retries are tricky because depending on how the job is implemented they can cause more harm than good. So I plan to refine that more based on customer feedback.

Re:Show HN: Posthook – Job Scheduling as a Service by ben509 on Tuesday June 19, 2018 @03:25PM (#17349584)
> Retries are tricky because depending on how the job is implemented they can cause more harm than good.

Ah, yes, there's nothing like bringing capacity back online only to have it crushed by all your customers retrying at the same time.

AWS got bit hard by this[3] but there's a blog post[1] about it, which is linked to by the docs for their client software[2].

[1] https://aws.amazon.com/blogs/architecture/exponential-backof...

[2] https://docs.aws.amazon.com/general/latest/gr/api-retries.ht...

[3] https://aws.amazon.com/message/5467D2/ ... basically DynamoDB is a fundamental service for AWS and had implemented some new streams features. This all appeared to be working, but they were running closer to capacity than intended, and when a cluster went out this caused a cascading failure.

And see this which linked to that RCA: https://blog.scalyr.com/2015/09/irreversible-failures-lesson...

Re:Show HN: Posthook – Job Scheduling as a Service by nodesocket on Tuesday June 19, 2018 @12:15PM (#17347989)
Seems like allowing the user to specify retry logic (if any) covers the "tricky" pieces. Let the user define the number of retries and delay between.
Re:Show HN: Posthook – Job Scheduling as a Service by cgenuity on Tuesday June 19, 2018 @12:32PM (#17348125)
Agreed, thank you :). Added to the board.
Re:Show HN: Posthook – Job Scheduling as a Service by chaosprophet on Tuesday June 19, 2018 @11:48AM (#17347746)
What happens when you have a service outage? Do you directly mark the hooks as failed, or do you retry once after your service has been restored?
Re:Show HN: Posthook – Job Scheduling as a Service by cgenuity on Tuesday June 19, 2018 @11:58AM (#17347854)
If the service outage is on Posthook's side, they would be retried.

If the outage is on the customer's side, all hooks that were attempted during the outage would be marked as failed. I plan on adding a feature that will allow the developer to fire off again all failed hooks in a given time period.

Re:Show HN: Posthook – Job Scheduling as a Service by dosy on Wednesday June 20, 2018 @04:23AM (#17353514)
I just posted a scalable service that does support recurring scheduling ( every 15 minutes, as fast as every second, or long as every n months ). Show HN here: https://news.ycombinator.com/item?id=17353486
Re:Show HN: Posthook – Job Scheduling as a Service by jmvoodoo on Tuesday June 19, 2018 @01:58PM (#17348896)
I use cron-job.org for recurring hooks. It's not as developer friendly as posthook but it gets the job done.