opencadc / uws

client and server implementations of the Universal Worker Service (UWS) specification
GNU Affero General Public License v3.0
2 stars 8 forks source link

Job phase needs to be set to TERMINATED when interrupted #19

Open brianmajor opened 6 years ago

brianmajor commented 6 years ago

When async or sync jobs are interrupted by the Java VM they remain in the phase they were set to by the job runner. Instead, the Job executor should detect an InterruptedException and use the job updater to set the phase to TERMINATED if not already in a terminal phase.