Add support for pausing and resuming a job
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
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.