protected static final EnumMap<JobState, WsJob.JobState> stateMap = new EnumMap<>(JobState.class);
{
stateMap.put(JobState.PENDING, WsJob.JobState.QUEUED);
+ stateMap.put(JobState.REJECTED, WsJob.JobState.INVALID);
+ stateMap.put(JobState.ACCEPTED, WsJob.JobState.QUEUED);
stateMap.put(JobState.QUEUED, WsJob.JobState.QUEUED);
stateMap.put(JobState.RUNNING, WsJob.JobState.RUNNING);
stateMap.put(JobState.COMPLETED, WsJob.JobState.FINISHED);
+ stateMap.put(JobState.INTERRUPED, WsJob.JobState.CANCELLED);
+ stateMap.put(JobState.DELETED, WsJob.JobState.CANCELLED);
stateMap.put(JobState.FAILED, WsJob.JobState.FAILED);
stateMap.put(JobState.ERROR, WsJob.JobState.SERVERERROR);
stateMap.put(JobState.UNKNOWN, WsJob.JobState.UNKNOWN);