Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1502 closed enhancement (fixed)

Add Signal.SHUTDOWN to plug-in signal system

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: BASE 2.16
Component: core Version:
Keywords: Cc:

Description

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.

Change History (4)

comment:1 by Nicklas Nordborg, 14 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [5399]) Fixes #1502: Add Signal.SHUTDOWN to plug-in signal system

The SHUTDOWN signal is now defined in the system and the job agent and internal job queue use this when shutting down (if supported by the plug-in, otherwise the ABORT signal is used).

No currently existing plug-ins support the SHUTDOWN signal and there is not support in the core or job agents to resume a job when the server starts up.

comment:3 by Nicklas Nordborg, 14 years ago

(In [5407]) References #1509, #1503 and #1502. Updated documentation related to the mentioned tickets.

comment:4 by Nicklas Nordborg, 14 years ago

(In [5420]) References #1502: Add Signal.SHUTDOWN to plug-in signal system

Marked a deprecated med with @Deprecated to get rid of compiler warning.

Note: See TracTickets for help on using tickets.