Add Signal.SHUTDOWN to plug-in signal system
|Reported by:||Nicklas Nordborg||Owned by:||Nicklas Nordborg|
The plug-in api has an elaborate signal system to let us send signals to plug-ins. Until now we have only defined
Signal.ABORT which is used when the user clicks on the "Abort" button in the web interface. The same signal is used when the job agent/web server is shutting down which makes it impossible for a plug-in to know the source of the signal.
I suggest that a we define
Signal.SHUTDOWN that is sent when the system is shutting down. In the future this would make it possible to develop plug-ins that survive a restart and continue working as if nothing has happened when the system is up and running again.
Of course, this will not work automatically, we need support at the job agent level so that it knows which jobs to re-start and at the plug-in level so that it knows were to begin.