fix: add restart_again flag to DesiredStatus::Restarting

When a restart is requested while the service is already restarting
(stopped but not yet started), set restart_again so the actor will
perform another stop→start cycle after the current one completes.
This commit is contained in:
Aiden McClelland
2026-03-11 15:17:53 -06:00
parent 90b73dd320
commit 10a5bc0280
6 changed files with 37 additions and 20 deletions

View File

@@ -1289,7 +1289,7 @@ export class MockApiService extends ApiService {
op: PatchOp.REPLACE,
path,
value: {
desired: { main: 'restarting' },
desired: { main: 'restarting', restartAgain: false },
started: null,
error: null,
health: {},