I have been working with Azure webjobs for a while now but am still struggling to figure out why some extremely long running web job fails..
I have webjob which is built using the Azure SDK and get's triggered from a queue message coming in. This web job pulls a blob of XML from Azure Blob storage which contains information about 110000 items, it then loops through these and using REST WebApi2 endpoints makes various HttpClient requests to create the various entities in both our table storage and DocumentDB... the process is slooooow something I'm working on, but it runs for days... which is fine as there is no urgency, apart from it keeps randomly just stopping, sometimes after two days... the last time the only message was "Thread was being aborted". I making regular logging out and http calls so it's not like the job is sat there doing nothing... UPDATE:
I should also state I have upgraded the whole app service plan to S1 and set the web app hosting the web job to Always On...
I have also looked at "WEBJOBS_RESTART_TIME" but this is not relevant as it's about restarting after stopping, something I assumed a continuous job with no error shouldn't do!