@Retention(RetentionPolicy.SOURCE)
@IntDef({CancelReason.REACHED_RETRY_LIMIT,
CancelReason.CANCELLED_WHILE_RUNNING,
CancelReason.SINGLE_INSTANCE_WHILE_RUNNING,
CancelReason.CANCELLED_VIA_SHOULD_RE_RUN,
<BUG>CancelReason.SINGLE_INSTANCE_ID_QUEUED})

public @interface CancelReason {
int REACHED_RETRY_LIMIT = JobHolder.RUN_RESULT_FAIL_RUN_LIMIT;</BUG>
int CANCELLED_WHILE_RUNNING = JobHolder.RUN_RESULT_FAIL_FOR_CANCEL;

@Retention(RetentionPolicy.SOURCE)
@IntDef({CancelReason.REACHED_RETRY_LIMIT,
CancelReason.CANCELLED_WHILE_RUNNING,
CancelReason.SINGLE_INSTANCE_WHILE_RUNNING,
CancelReason.CANCELLED_VIA_SHOULD_RE_RUN,
CancelReason.SINGLE_INSTANCE_ID_QUEUED,
CancelReason.REACHED_DEADLINE})
public @interface CancelReason {
int SINGLE_INSTANCE_ID_QUEUED = 1;
int REACHED_RETRY_LIMIT = JobHolder.RUN_RESULT_FAIL_RUN_LIMIT;
int CANCELLED_WHILE_RUNNING = JobHolder.RUN_RESULT_FAIL_FOR_CANCEL;
