Receiving 524 and timing out after 110 seconds

If the origin server does not return an HTTP response within 100 seconds, Cloudflare will close the connection and return a 524 error. Only Enterprise zones can increase this limit.

You will either need to use a subdomain set to “DNS only” so requests don’t use Cloudflare, or change how you handle long-running tasks so they return within 100 seconds.