This sounds like a terrible way to achieve your goal.
Save the future posts to the database with the required publish date/time.
Run cron every $X minutes where $X is the smallest interval you allow (ie if you force publish date to be rounded to 5 minutes, run cron every 5 minutes) and check for "future posts" where the publish date <= now(), and take action.
This is pretty basic stuff and that you want to offload it to a 3rd party by capturing all the details into a request to be made back to your app is a huge red flag IMO.
Re:Ask HN: Job Scheduling as a service
by scarface74 on Monday November 20, 2017 @09:09AM
(#15739927)
He's posting an example. He mentioned multiple jobs.
Re:Ask HN: Job Scheduling as a service
by scarface74 on Monday November 20, 2017 @07:40AM
(#15739476)
Because if the server is restarted all my scheduled jobs will be gone ..
I went into more details about Hashicorp's Nomad in another post, but I didn't mention that you can run a cluster of Nomad servers for high availability.
Nomad is open source - I don't have a dog in the fight - I'm just a happy user.
So i am looking for a hosted scheduler where i can send a rest API request with a webhook and a small payload . During the execution time the hosted scheduler will call the webhook with the payload , so that i will publish the post .
Pros is that i dont want to worry about the scheduled jobs .Right now i am unable to find a scheduler with the good admin UI ( to pause all the jobs ) to delete the trial users post .