Azure Continuous Web Job triggering again after every 10 mins

%3CLINGO-SUB%20id%3D%22lingo-sub-290156%22%20slang%3D%22en-US%22%3EAzure%20Continuous%20Web%20Job%20triggering%20again%20after%20every%2010%20mins%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-290156%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20a%20continuous%20web%20job%2C%20which%20was%20running%20fine%20if%20the%20job%20takes%20an%20hour%20time%20(to%20provision%20a%20site%20collection).%20All%20of%20a%20sudden%2C%20the%20web%20job%20started%20triggering%20every%2010%20minutes%20and%20sites%20are%20not%20provisioning.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20something%20changed%20on%20Continuous%20Web%20Jobs%20(Such%20as%20timeout)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20the%20logs%2C%20I%20see%20the%20following%20error%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3EUnhandled%20Exception%3A%20Microsoft.WindowsAzure.Storage.StorageException%3A%20The%20remote%20server%20returned%20an%20error%3A%20(404)%20Not%20Found.%20---%26gt%3B%20System.Net.WebException%3A%20The%20remote%20server%20returned%20an%20error%3A%20(404)%20Not%20Found.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-291664%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Continuous%20Web%20Job%20triggering%20again%20after%20every%2010%20mins%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-291664%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37647%22%20target%3D%22_blank%22%3E%40Venkata%20Ratnam%20Vemula%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20running%205%20times%20before%20it%20quits%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20looks%20like%20you're%20getting%20an%20unhandled%20exception%20in%20your%20code%2C%20in%20which%20case%20a%20queue%20triggered%20webjob%20will%20retry%205%20times.%20You%20can%20change%20this%20setting%20by%20changing%20the%26nbsp%3B%3CSPAN%3Econfig.Queues.MaxDequeueCount%20setting.%20The%20default%20is%205.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ECheck%20out%20this%20blog%20post%20by%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F6070%22%20target%3D%22_blank%22%3E%40David%20Opdendries%3C%2FA%3E%26nbsp%3Bfor%20more%20info.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.spdavid.com%2Fazure-web-jobs-c-sharp%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.spdavid.com%2Fazure-web-jobs-c-sharp%2F%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi,

I have a continuous web job, which was running fine if the job takes an hour time (to provision a site collection). All of a sudden, the web job started triggering every 10 minutes and sites are not provisioning.

 

Is something changed on Continuous Web Jobs (Such as timeout)?

 

From the logs, I see the following error:

Unhandled Exception: Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (404) Not Found. ---> System.Net.WebException: The remote server returned an error: (404) Not Found.

1 Reply
Highlighted

Hi @Venkata Ratnam Vemula

 

Is it running 5 times before it quits?

 

It looks like you're getting an unhandled exception in your code, in which case a queue triggered webjob will retry 5 times. You can change this setting by changing the config.Queues.MaxDequeueCount setting. The default is 5.

 

Check out this blog post by @David Opdendries for more info.

 

https://www.spdavid.com/azure-web-jobs-c-sharp/