A
A
Aracon2016-07-08 15:21:09
PHP
Aracon, 2016-07-08 15:21:09

How to ensure that a PHP script run by cron is restarted if there was an error?

There is some important task that is performed by a PHP script run by cron. The script in the course of work refers to an external API, which is sometimes unavailable. As a result, if at the time of launch it turned out that the API is not available, the script does not perform its task.
How can you organize the work so that, in case of failure, a second attempt is made after a while? Perhaps there are some ready-made systems that can manage the execution of tasks and restart them in case of failures?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question