Server Timeout

Hi
Running a fairly heavy background task on my server gives the error described below. I have spoken to my hosting provider wpx and they have asked me to speak to cloudflare to get more insight and possibly a fix. They have maximised php hits though.
Any help will be gladly accepted. How do I approach this?

Best wishes
Raza

A timeout occurred Error code 524

2023-12-27 09:57:50 UTC

You

Browser

Working

London

[Cloudflare](

/5xx-error-landing?utm_source=errorcode_524&utm_campaign= xxxxxxx)

Working

Host

Error

What happened?

The origin web server timed out responding to this request.

What can I do?

If you’re a visitor of this website:

Please try again in a few minutes.

If you’re the owner of this website:

The connection to the origin web server was made, but the origin web server timed out before responding. The likely cause is an overloaded background task, database or application, stressing the resources on your web server. To resolve, please work with your hosting provider or web development team to free up resources for your database or overloaded application. Additional troubleshooting information here.

Cloudflare times out after 100 seconds if there is no HTTP response. Your job may be completing on your server in the backgroup anyway once started. If you need to see the result you will need to call your script direct from the command line, direct to the origin IP address or use a non-proxied host name for it.

Thanks sjr, useful info. Let me revisit the setup and I’ll respond accordingly.

Best wishes