package com.ecep.contract;

/** 
 * 任务状态枚举 
 */ 
public enum TaskStatus {
    /**
     * 进入等待延时队列，等待执行
     */
    DELAYED("延时"),
    /**
     * 已调度
     */
    SCHEDULED("已调度"), 
    RUNNING("运行中"), 
    SUCCEEDED("成功"), 
    FAILED("失败"), 
    CANCELLED("已取消"), 
    TIMED_OUT("超时"); 
    
    private final String description; 
    
    TaskStatus(String description) { 
        this.description = description; 
    } 
    
    public String getDescription() { 
        return description; 
    } 
}