Skip to content

Fix bad-state simulator relaunch via task_manager.is_healthy(). - #391

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_951760337
Jul 22, 2026
Merged

Fix bad-state simulator relaunch via task_manager.is_healthy().#391
copybara-service[bot] merged 1 commit into
mainfrom
test_951760337

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jul 21, 2026

Copy link
Copy Markdown

Fix bad-state simulator relaunch via task_manager.is_healthy().

Fix GitHub Issue #390 where TaskManagerConfig.max_bad_states set a write-only
_should_restart flag that was never checked by Coordinator, resulting in logs
claiming the simulator was restarting when no actual relaunch occurred.

Add an is_healthy() query method to TaskManager that returns False when
max_bad_states is exceeded, and reset bad states on TaskManager.start(). Update
Coordinator.rl_reset() to check not self._task_manager.is_healthy() alongside
simulator health before relaunching.

@copybara-service
copybara-service Bot force-pushed the test_951760337 branch 2 times, most recently from e5515a5 to b2b3959 Compare July 21, 2026 23:47
@copybara-service copybara-service Bot changed the title Fix bad-state simulator relaunch by connecting task_manager.is_healthy(). Fix bad-state simulator relaunch via task_manager.is_healthy(). Jul 21, 2026
@copybara-service
copybara-service Bot force-pushed the test_951760337 branch 3 times, most recently from 50f091d to 72c849d Compare July 22, 2026 11:11
Fix GitHub Issue #390 where `TaskManagerConfig.max_bad_states` set a write-only
`_should_restart` flag that was never checked by `Coordinator`, resulting in logs
claiming the simulator was restarting when no actual relaunch occurred.

Add an `is_healthy()` query method to `TaskManager` that returns `False` when
`max_bad_states` is exceeded, and reset bad states on `TaskManager.start()`. Update
`Coordinator.rl_reset()` to check `not self._task_manager.is_healthy()` alongside
simulator health before relaunching.

PiperOrigin-RevId: 952027934
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant