Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions examples/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ def main():
print(f"Resource Changes: {apply.resource_changes}")
print(f"Resource Destructions: {apply.resource_destructions}")
print(f"Resource Imports: {apply.resource_imports}")
print(f"Created At: {apply.created_at}")
print(f"Status Timestamps: {apply.status_timestamps}")
print(f"Log Read URL: {apply.log_read_url}")
print(
f"Execution Details ID: {apply.execution_details.id if apply.execution_details else 'None'}"
)

# Display timestamp details if available
if apply.status_timestamps:
print(f" Queued At: {apply.status_timestamps.queued_at}")
print(f" Started At: {apply.status_timestamps.started_at}")
print(f" Finished At: {apply.status_timestamps.finished_at}")
except Exception as e:
print(f"Error reading apply: {e}")
return 1
Expand Down
2 changes: 1 addition & 1 deletion examples/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def main():
variables=variables,
)

new_run = client.runs.create(args.workspace_id, create_options)
new_run = client.runs.create(create_options)

print(f"Created new run: {new_run.id}")
print(f"Status: {new_run.status}")
Expand Down
Loading
Loading