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?
A timeout occurred Error code 524
2023-12-27 09:57:50 UTC
The origin web server timed out responding to this request.
Please try again in a few minutes.
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.