Thread was being aborted while running Task.

joyanta sen asked on September 9, 2018 20:52

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.

Recent Answers


Zach Perry answered on September 10, 2018 16:30

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.

0 votesVote for this answer Mark as a Correct answer

joyanta sen answered on September 10, 2018 17:36

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.

Thanks.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.