Cloudflare has a 100-second timeout, as you have noticed. This is not configurable unless on the Enterprise plan. Your options are to gray cloud () the domain and lose Cloudflare’s protections/CDN, rework your script to run in the background, respond with some ID that can be polled for status in future requests, or otherwise make it respond quicker.