Manual:$wgAsyncHTTPTimeout

Details
Timeout for asynchronous http request that run in a backgournd php proccess. Default to 20 minutes.