Send status message on runtime restart (#6275)

This commit is contained in:
Ray Myers
2025-01-14 20:21:06 -06:00
committed by GitHub
parent c5797d1d5a
commit 082d0b25c5

View File

@@ -229,6 +229,13 @@ class RemoteRuntime(ActionExecutionClient):
raise AgentRuntimeUnavailableError() from e
def _resume_runtime(self):
"""
1. Show status update that runtime is being started.
2. Send the runtime API a /resume request
3. Poll for the runtime to be ready
4. Update env vars
"""
self.send_status_message('STATUS$STARTING_RUNTIME')
with self._send_runtime_api_request(
'POST',
f'{self.config.sandbox.remote_runtime_api_url}/resume',