Skip to content

Commit cb1e3e8

Browse files
committed
fix(execute_command): add cleanup for command after task execution
1 parent 588d9de commit cb1e3e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/execute_command.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def main() -> None:
5050
if execution.status.phase == "TASK_EXECUTION_PHASE_FAILED":
5151
print(f"Task execution failed: {execution.status.failure_message}")
5252
finally:
53+
# Clean up command
5354
delete_command(client, task_id)
5455
finally:
5556
# Clean up environment

0 commit comments

Comments
 (0)