A function to reset the timeout inside of a process.

I have a process of TriggerBatchProcessing with a query of getting 20,000+ records, as I run the process, it keeps on Aborting the Thread. I have set the default timeout in the Configuration Tool from 30 secs. to 900 secs., as well as the Long Operations Timeout to 6000, not to mention that my query(GetAllDetails) has also a Timeout of 21600.

I tried to run it with a breakpoint, checking the result of the query. And the whole process was finished after the breakpoint. We are now looking for the possibility of resetting the timeout inside our process.