Skip to content

Commit f5928e7

Browse files
authored
[CRE][DONTime] Restore rollout flag (#1991)
1 parent afd603d commit f5928e7

3 files changed

Lines changed: 23 additions & 11 deletions

File tree

pkg/workflows/dontime/pb/dontime.pb.go

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

pkg/workflows/dontime/pb/dontime.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ option go_package = "github.com/smartcontractkit/chainlink-common/pkg/workflows/
55
message Observation {
66
int64 timestamp = 1;
77
map<string, int64> requests = 2;
8-
reserved 3; // old rollout flag 'prune_executions'
8+
// Flag to roll out execution pruning fix. Can be removed after rollout (once unused in the outcome phase).
9+
bool prune_executions = 3;
910
}
1011

1112
message ObservedDonTimes {

pkg/workflows/dontime/plugin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ func (p *Plugin) Observation(_ context.Context, outctx ocr3types.OutcomeContext,
147147
}
148148

149149
observation := &pb.Observation{
150-
Timestamp: time.Now().UTC().UnixMilli(),
151-
Requests: requests,
150+
Timestamp: time.Now().UTC().UnixMilli(),
151+
Requests: requests,
152+
PruneExecutions: true,
152153
}
153154

154155
return proto.MarshalOptions{Deterministic: true}.Marshal(observation)

0 commit comments

Comments
 (0)