Error 524 with cron

In short, refactor your code to not rely on an external HTTP call.