Add support for pausing and resuming a job
|Reported by:||nicklas||Owned by:||nicklas|
This function is similar to the already existing support for restarting a job after a system shutdown. The main difference is that manual user interaction is required to restart the job again.
We should define a PAUSE signal in the signalling system. Plug-ins can implement support for this via the existing EnhancedThreadSignalHandler.
In the view job dialog we should display a PAUSE button so that the user can pause the job. Clicking on the button will send the PAUSE signal to the plug-in which uses the existing Response interface (we need to add some new methods here) to return control back to the core. It should be possible for the plug-in to store some kind of state information. I think we can use the static cache for this. The core will set the job status to PAUSED.
A PAUSED job remains in the job queue. The view dialog will have the option to RESUME or RECONFIGURE the job. When re-starting the job, the saved state information will also be restored.
NOTE! A plug-in may use the pause functionality without implementing support for the PAUSE signal.
Change History (10)
comment:1 Changed 4 weeks ago by nicklas
- Owner changed from everyone to nicklas
- Status changed from new to assigned
comment:9 Changed 3 weeks ago by nicklas
- Resolution set to fixed
- Status changed from assigned to closed