private final TaskEventSupport<R> eventHandler;
- protected JobStatus taskStatus = null;
+ protected JobStatus taskStatus = JobStatus.CREATED;
private Future<?> future = null;
protected final List<SequenceI> inputSeqs;
- protected JobStatus status = null;
+ protected JobStatus status = JobStatus.CREATED;
protected String log = "";
public enum JobStatus
{
+ /** Initial status before the job is started. */
+ CREATED,
/** Job has invalid inputs and cannot be started. */
INVALID,
/** Job is created and ready for submission. */
case CANCELLED:
case SERVER_ERROR:
return true;
+ case CREATED:
case READY:
case SUBMITTED:
case QUEUED:
JobStatus.UNKNOWN, // unknown prevents successful completion but not
// running or failure
JobStatus.READY,
+ JobStatus.CREATED,
JobStatus.SUBMITTED,
JobStatus.QUEUED,
JobStatus.RUNNING,