Set CRON schedule crash the site?
bodadotsh
HOBBYOP

2 months ago

Hi I have a web app with pre-rendered content, so I thought to use the CRON schedule to re-start the service every hour to regenerate the static content. But I noticed if I enable the CRON job, the site will go down as HTTP 502 error (every single time), and if I disable CRON, the site is back up online immediate. Is this a bug?

3 Replies

brody
EMPLOYEE

2 months ago

Cron is not meant to restart a service, it's for one off jobs


bodadotsh
HOBBYOP

2 months ago

Got it. Any idea on if it’s possible to restart the service periodically? No worries if not


brody
EMPLOYEE

2 months ago

I created this for your exact scenario -


Loading...