Hi, I am running a Task, which calla a API and store the data, get from the API into the Database. The API is getting called inside a for each loop and the Task takes longer time as the loop has to iterate so many times.
This is working fine while running locally but while running in UAT environment or production, getting error "Thread was being aborted". But while running for small number of data it works good. I have checked the binding configuration and everything looked same as local.
Could you please help me out to find the issue
Thanks.
How long is it taking to run?
Does it happen every time? I would maybe add some logging to see if it happens at the same point every time.
Could try changing the execution timeout.
Hi, The task take near about 3 to 4 hours to run. Yes it is happening all the time and not at the same point.
Please, sign in to be able to submit a new answer.