Skip to content

Commit 4899436

Browse files
max_executingをstatusとして送信するようにした
1 parent ce95a4f commit 4899436

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

gaia-stub/proto/cop.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ enum CopTaskStatusPattern {
118118
message CopWorkerStatus {
119119
CopWorkerStatusPattern state = 1;
120120
uint64 timeout_sec = 2;
121-
google.protobuf.Timestamp timestamp = 3;
121+
uint32 max_executing = 3;
122+
google.protobuf.Timestamp timestamp = 4;
122123
}
123124

124125
enum CopWorkerStatusPattern {

tmtc-c2a/src/fop/state_machine.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ impl FopStateContext {
9595
if let Err(e) = self.worker_state_tx.send(CopWorkerStatus {
9696
state: status.into(),
9797
timeout_sec: self.timeout_sec.into(),
98+
max_executing: self.max_executing as u32,
9899
timestamp: Some(timestamp),
99100
}).await {
100101
error!("failed to send FOP state: {}", e);

0 commit comments

Comments
 (0)