Skip to content

Commit 588d9de

Browse files
committed
fix(execute_command): update variable name for task execution in log streaming
1 parent 4b6ae6c commit 588d9de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/execute_command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ def main() -> None:
3939
task_id = create_command(client, environment_id, reference, name, description)
4040
try:
4141
# Run command
42-
task_execution = run_command(client, task_id)
42+
execution_id = run_command(client, task_id)
4343

4444
# Stream logs
45-
stream_command_logs(client, environment_id, task_execution)
45+
stream_command_logs(client, environment_id, execution_id)
4646

4747
# Check command status
4848
execution = client.environments.automations.tasks.executions.retrieve(id=execution_id).task_execution

0 commit comments

Comments
 (0)