Skip to content

Commit 89517f2

Browse files
flankbotmoshloopadityathebe
authored
chore: bump duty to v1.0.1349 (#3038)
* chore: bump duty to v1.0.1349 * fix: job definition changes --------- Co-authored-by: moshloop <1489660+moshloop@users.noreply.github.com> Co-authored-by: Aditya Thebe <contact@adityathebe.com>
1 parent c9bc11c commit 89517f2

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/flanksource/artifacts v1.0.24
99
github.com/flanksource/commons v1.53.1
1010
github.com/flanksource/deps v1.0.35 // indirect
11-
github.com/flanksource/duty v1.0.1348
11+
github.com/flanksource/duty v1.0.1349
1212
github.com/flanksource/gomplate/v3 v3.24.84
1313
github.com/flanksource/is-healthy v1.0.88
1414
github.com/flanksource/kommons v0.31.7

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,8 +1063,8 @@ github.com/flanksource/commons v1.53.1 h1:WiMvY9XGG//L4ndYKTcmp0NjWXg4B7Wbn4hYWk
10631063
github.com/flanksource/commons v1.53.1/go.mod h1:ZII22jIDJ3fd/Mz7l0SzLFEv8aoSUg+xwfJAAVf8up4=
10641064
github.com/flanksource/deps v1.0.35 h1:tHxhkJSsJBWRmx7lR/X1rI8diz6tu0dsGb7GCROfuIQ=
10651065
github.com/flanksource/deps v1.0.35/go.mod h1:2YRfP32WZrMxGVMYV51RlVHZfgerxf8DT3TqSgjzmTQ=
1066-
github.com/flanksource/duty v1.0.1348 h1:fC1WBpiqlUlpPrgE4C1oEMVMPx4AH8oVJhxLV80yFU0=
1067-
github.com/flanksource/duty v1.0.1348/go.mod h1:sk3nPKqdhu2m5kvlxTx14+gKjj6XJgykyQcGHeZRcKM=
1066+
github.com/flanksource/duty v1.0.1349 h1:wBgwhPAhZm0kZ0rB5/ciUFlVDBIbKw49984SL/+Auo0=
1067+
github.com/flanksource/duty v1.0.1349/go.mod h1:sk3nPKqdhu2m5kvlxTx14+gKjj6XJgykyQcGHeZRcKM=
10681068
github.com/flanksource/gomplate/v3 v3.20.4/go.mod h1:27BNWhzzSjDed1z8YShO6W+z6G9oZXuxfNFGd/iGSdc=
10691069
github.com/flanksource/gomplate/v3 v3.24.84 h1:UOE0yCJsczTIKRaHUvhD6tjCYrbNvOugAizuy0FVlhE=
10701070
github.com/flanksource/gomplate/v3 v3.24.84/go.mod h1:NMMZkFsjbLy/8iY8Fip5N86Y0PP6lZeq+kmPwpVVIL0=

pkg/jobs/canary/sync.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,14 @@ func newCanaryJob(c CanaryJob) error {
176176
Retention: job.RetentionBalanced,
177177
ResourceID: c.DBCanary.ID.String(),
178178
ResourceType: "canary",
179-
ID: fmt.Sprintf("%s/%s", c.Canary.Namespace, c.Canary.Name),
179+
Aliases: []string{fmt.Sprintf("%s/%s", c.Canary.Namespace, c.Canary.Name)},
180180
Fn: c.Run,
181181
}
182182

183183
if err := j.AddToScheduler(CanaryScheduler); err != nil {
184-
return fmt.Errorf("failed to schedule canary %s: %w", j.ID, err)
184+
return fmt.Errorf("failed to schedule canary %s (alias: %v): %w", j.ID(), j.Aliases, err)
185185
}
186+
186187
canaryJobs.Store(c.DBCanary.ID.String(), j)
187188

188189
return nil

0 commit comments

Comments
 (0)