Skip to content

Commit

Permalink
laying groundwork for dynamic updates via protos
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Jan 3, 2024
1 parent 4b0bba1 commit ecc91d8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
13 changes: 13 additions & 0 deletions protos/flow.proto
Original file line number Diff line number Diff line change
Expand Up @@ -419,3 +419,16 @@ enum FlowStatus {
// neither button should be enabled
STATUS_TERMINATED = 7;
}

message CDCFlowStateUpdate {
}

message QRepFlowStateUpdate {
}

message FlowStateUpdate {
oneof update {
CDCFlowStateUpdate cdc_flow_state_update = 1;
QRepFlowStateUpdate qrep_flow_state_update = 2;
}
}
9 changes: 2 additions & 7 deletions protos/route.proto
Original file line number Diff line number Diff line change
Expand Up @@ -182,18 +182,13 @@ message MirrorStatusResponse {
peerdb_flow.FlowStatus current_flow_state = 5;
}

// in the future, consider moving DropFlow to this and reduce route surface
enum FlowState {
STATE_UNKNOWN = 0;
STATE_RUNNING = 1;
STATE_PAUSED = 2;
}

message FlowStateChangeRequest {
string flow_job_name = 1;
peerdb_flow.FlowStatus requested_flow_state = 2;
peerdb_peers.Peer source_peer = 3;
peerdb_peers.Peer destination_peer = 4;
// only can be sent in certain situations
peerdb_flow.FlowStateUpdate flow_state_update = 5;
}

message FlowStateChangeResponse {
Expand Down

0 comments on commit ecc91d8

Please sign in to comment.