Replacing Cron with a More Reliable Service for Scheduled Tasks
Hello,
I am looking to replace my current virtual machine setup that uses cron for firing scheduled tasks in the Kernel. I have been experiencing issues with the reliability of the cron machine, especially since I am using containers. It has failed several times, and I need a more dependable solution.
I am considering switching to a simple HTTP request from an external service that will hit my app every minute and schedule the tasks. However, I am open to other suggestions for production-ready alternatives.
Please share any ideas or recommendations you have for a more reliable service that can handle scheduled tasks efficiently.
Yes, you could do as you suggest, but you end up with a more complex solution, which is dependent on a third party service being up and running.
You also limit max execution time of your scheduled jobs to be the same as your http request max execution
You might also need to consider possibly being called more than once in any given minute if the URL you are using becomes known to web crawlers (causing jobs to run more than once)