-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathtasks.go
20 lines (17 loc) · 1.15 KB
/
tasks.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package config
const (
RepositorySnapshotTask = "snapshot" // Task to create a snapshot for a repository config
DeleteRepositorySnapshotsTask = "delete-repository-snapshots" // Task to delete all snapshots for a repository config
IntrospectTask = "introspect" // Task to introspect repository
DeleteTemplatesTask = "delete-templates" // Task to delete all content templates marked for deletion
UpdateTemplateContentTask = "update-template-content" // Task to update the pulp distributions of a template's snapshots
UpdateRepositoryTask = "update-repository" // Task to update repository information in candlepin when the repository is updated
)
const (
TaskStatusRunning = "running" // Task is running
TaskStatusFailed = "failed" // Task has failed
TaskStatusCompleted = "completed" // Task has completed
TaskStatusCanceled = "canceled" // Task has been canceled
TaskStatusPending = "pending" // Task is waiting to be started
)
var RequeueableTasks = []string{DeleteTemplatesTask, DeleteRepositorySnapshotsTask, UpdateTemplateContentTask}