From 3803029f33fc72f6495a1e7fbd7ef0e419774a8a Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Sun, 3 Jul 2016 15:47:40 +0800 Subject: [PATCH] add retry as a status of a job --- models/replication_job.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/replication_job.go b/models/replication_job.go index 4c3fc11d4..59c2ad375 100644 --- a/models/replication_job.go +++ b/models/replication_job.go @@ -35,6 +35,8 @@ const ( JobFinished string = "finished" //JobCanceled ... JobCanceled string = "canceled" + //JobRetrying indicate the job needs to be retried, it will be scheduled to the end of job queue by statemachine after an interval. + JobRetrying string = "retrying" //JobContinue is the status returned by statehandler to tell statemachine to move to next possible state based on trasition table. JobContinue string = "_continue" //RepOpTransfer represents the operation of a job to transfer repository to a remote registry/harbor instance.