diff --git a/src/domain/job.go b/src/domain/job.go index 5a64492..f5f2695 100644 --- a/src/domain/job.go +++ b/src/domain/job.go @@ -14,4 +14,5 @@ type Job struct { Arguments string `json:"arguments,omitempty"` StartOnly bool `json:"start_only,omitempty"` Enabled bool `json:"enabled"` + OverlapPolicy string `json:"overlap_policy,omitempty"` } diff --git a/src/storage/store.go b/src/storage/store.go index c088d5b..27cbbdd 100644 --- a/src/storage/store.go +++ b/src/storage/store.go @@ -36,14 +36,15 @@ type yamlConfig struct { } type yamlJob struct { - ID int `yaml:"id"` - Name string `yaml:"name"` - Folder string `yaml:"folder,omitempty"` - Schedule string `yaml:"schedule"` - Command string `yaml:"command"` - Arguments string `yaml:"arguments,omitempty"` - StartOnly bool `yaml:"start_only,omitempty"` - Enabled bool `yaml:"enabled"` + ID int `yaml:"id"` + Name string `yaml:"name"` + Folder string `yaml:"folder,omitempty"` + Schedule string `yaml:"schedule"` + Command string `yaml:"command"` + Arguments string `yaml:"arguments,omitempty"` + StartOnly bool `yaml:"start_only,omitempty"` + Enabled bool `yaml:"enabled"` + OverlapPolicy string `yaml:"overlap_policy,omitempty"` } type yamlJobsFile struct {