fix: fence cleanup on tracked run completion

This commit is contained in:
2026-10-04 13:40:10 +09:00
parent 1fbf93c8c1
commit 20109b88df
18 changed files with 123 additions and 29 deletions
+2
View File
@@ -8028,6 +8028,7 @@ mod tests {
protocol::WorkerRunState::Running,
)),
last_command_id: 2,
last_finished_submission_request_id: Some("request-old".to_string()),
};
{
let mut state = runtime.lock().unwrap();
@@ -8049,6 +8050,7 @@ mod tests {
let fresh = protocol::WorkerStateSnapshot {
state: protocol::WorkerState::Idle,
last_command_id: 0,
last_finished_submission_request_id: None,
};
{
let mut state = runtime.lock().unwrap();
@@ -3824,11 +3824,13 @@ mod tests {
protocol::WorkerRunState::Running,
)),
last_command_id: 2,
last_finished_submission_request_id: Some("request-old".to_string()),
};
let current = Arc::new(RwLock::new(running));
let idle = protocol::WorkerStateSnapshot {
state: protocol::WorkerState::Idle,
last_command_id: 0,
last_finished_submission_request_id: None,
};
let mut replacement = Event::WorkerState {
snapshot: idle.clone(),
@@ -3841,6 +3843,7 @@ mod tests {
protocol::WorkerRunState::Paused,
)),
last_command_id: 3,
last_finished_submission_request_id: None,
};
let mut acknowledgement = Event::CommandAcknowledged {
acknowledgement: protocol::WorkerCommandAcknowledgement {