2018-09-19 18:57:15 +02:00
|
|
|
// Copyright Project Harbor Authors
|
2017-05-11 15:41:57 +02:00
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
package models
|
|
|
|
|
|
|
|
const (
|
2018-09-05 10:16:31 +02:00
|
|
|
// JobPending ...
|
2017-05-11 15:41:57 +02:00
|
|
|
JobPending string = "pending"
|
2018-09-05 10:16:31 +02:00
|
|
|
// JobRunning ...
|
2017-05-11 15:41:57 +02:00
|
|
|
JobRunning string = "running"
|
2018-09-05 10:16:31 +02:00
|
|
|
// JobError ...
|
2017-05-11 15:41:57 +02:00
|
|
|
JobError string = "error"
|
2018-09-05 10:16:31 +02:00
|
|
|
// JobStopped ...
|
2017-05-11 15:41:57 +02:00
|
|
|
JobStopped string = "stopped"
|
2018-09-05 10:16:31 +02:00
|
|
|
// JobFinished ...
|
2017-05-11 15:41:57 +02:00
|
|
|
JobFinished string = "finished"
|
2018-09-05 10:16:31 +02:00
|
|
|
// JobCanceled ...
|
2017-05-11 15:41:57 +02:00
|
|
|
JobCanceled string = "canceled"
|
2018-09-05 10:16:31 +02:00
|
|
|
// JobRetrying indicate the job needs to be retried, it will be scheduled to the end of job queue by statemachine after an interval.
|
2017-05-11 15:41:57 +02:00
|
|
|
JobRetrying string = "retrying"
|
2018-09-05 10:16:31 +02:00
|
|
|
// JobContinue is the status returned by statehandler to tell statemachine to move to next possible state based on trasition table.
|
2017-05-11 15:41:57 +02:00
|
|
|
JobContinue string = "_continue"
|
2018-03-29 16:42:34 +02:00
|
|
|
// JobScheduled ...
|
|
|
|
JobScheduled string = "scheduled"
|
2017-05-11 15:41:57 +02:00
|
|
|
)
|