You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When restarting an IoT Edge module via iotedge restart <modulename> I'd expect that the module can be gracefully shut down.
For instance, if I have this simple module:
staticvoidMain(string[]args){Init().Wait();// Wait until the app unloads or is cancelledvarcts=newCancellationTokenSource();AssemblyLoadContext.Default.Unloading+=(ctx)=>{Console.WriteLine("Assembly unloading");cts.Cancel();};Console.CancelKeyPress+=(sender,cpe)=>cts.Cancel();WhenCancelled(cts.Token).Wait();Console.WriteLine("Stopped");}
When I issue a, iotedge restart command, the 'Assembly Unloading', and 'Stopped' messages are not written to the console, so it looks like a restart just kills the container.
Isn't there a possibility to send a SIGTERM signal when restarting, which could cause the container to gracefully shut down ?
The text was updated successfully, but these errors were encountered:
When restarting an IoT Edge module via
iotedge restart <modulename>
I'd expect that the module can be gracefully shut down.For instance, if I have this simple module:
When I issue a,
iotedge restart
command, the 'Assembly Unloading', and 'Stopped' messages are not written to the console, so it looks like a restart just kills the container.Isn't there a possibility to send a SIGTERM signal when restarting, which could cause the container to gracefully shut down ?
The text was updated successfully, but these errors were encountered: