summaryrefslogtreecommitdiff
path: root/plugins/jobs/structs/job_options.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-05 18:44:29 +0300
committerValery Piashchynski <[email protected]>2021-07-05 18:44:29 +0300
commit207739f7346c98e16087547bc510e1f909671260 (patch)
tree5c6eac27beb4eb5e127c7d8dae3464edb3359be9 /plugins/jobs/structs/job_options.go
parent300166eda7b138847008a7653f90753bd8397b9e (diff)
- Update PQ
- Update ephemeral plugin, complete Push - Add Jobs full configuration Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/structs/job_options.go')
-rw-r--r--plugins/jobs/structs/job_options.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/jobs/structs/job_options.go b/plugins/jobs/structs/job_options.go
index 1507d053..029a797d 100644
--- a/plugins/jobs/structs/job_options.go
+++ b/plugins/jobs/structs/job_options.go
@@ -4,6 +4,13 @@ import "time"
// Options carry information about how to handle given job.
type Options struct {
+ // Priority is job priority, default - 10
+ // pointer to distinguish 0 as a priority and nil as priority not set
+ Priority *uint64 `json:"priority"`
+
+ // ID - generated ID for the job
+ ID string `json:"id"`
+
// Pipeline manually specified pipeline.
Pipeline string `json:"pipeline,omitempty"`