Is there a timeout in RoleEnvironment.Stopping. About the role of azure labor?

We have several long running tasks for our roles and it is imperative to stop them in a controlled manner. at first we tried to use the On stop method, but MSDN says that

Attention! Code running in the OnStop method has a limited time to complete when called for reasons other than user-initiated shutdown. After this time has passed, the process ends, so you must ensure that the code in the OnStop method can execute quickly or tolerate execution until completion. The OnStop method is called after the stop event has stopped.

And the wait time is about 30 seconds, and the general shutdown routine should take no more than 5 minutes.

Does the Stopping event also have this limitation? I cannot find a clear and direct answer anywhere.

thank

+3


source to share





All Articles