I have set up a cron job which fetches the JSON response from a website, process it and saves it into the database. The Cron Job will be running for more than a week.
I am facing 2 problems:
I expect my cron job to continously run for more than a week if required, but after 2-3 days the cron job stops. The error log does not show any FAILURE. Any idea why the cron job stops without notification.
I get some WARNINGS, while I fetch data using file_get_contents, as failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/... This works in most cases, but some times I get this error, can some one tell me why this occurs.
Regards, Muthukumar