Skip to content

Commit c83f6d9

Browse files
authored
feat: add rollback policy to jd job (#191)
1 parent 2a2896f commit c83f6d9

3 files changed

Lines changed: 44 additions & 19 deletions

File tree

.changeset/silent-suns-smoke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@chainlink/job-distributor": patch
3+
---
4+
5+
Add Rollback Policy to Job

job-distributor/v1/job/job.pb.go

Lines changed: 37 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

job-distributor/v1/job/job.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ message Job {
6666
google.protobuf.Timestamp updated_at = 6; // Timestamp when the job was last updated.
6767
google.protobuf.Timestamp deleted_at = 7; // Timestamp when the job was deleted, if applicable.
6868
repeated api.label.Label labels = 8; // Set of labels associated with the job.
69+
string rollback_policy_id = 9; // ID of the rollback policy associated with this job.
6970
}
7071

7172
// Proposal represents a job proposal.
@@ -216,6 +217,7 @@ message UpdateJobRequest {
216217
string uuid = 2 [deprecated = true];
217218
}
218219
repeated api.label.Label labels = 3; // Set of labels associated with the job.
220+
string rollback_policy_id = 4; // ID of the rollback policy.
219221
}
220222

221223
// UpdateJobResponse returns details of the updated job.

0 commit comments

Comments
 (0)