Add debug logging for workflow output history
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m2s

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Nick
2025-12-27 10:15:19 +13:00
parent 8eedb6b45a
commit 70720c07d6

View File

@@ -456,6 +456,15 @@ def handler(job: dict) -> dict:
history = poll_for_completion(prompt_id, timeout) history = poll_for_completion(prompt_id, timeout)
print("Workflow completed") print("Workflow completed")
# Debug: print history structure
print(f"History keys: {history.keys()}")
if "outputs" in history:
print(f"Output nodes: {list(history['outputs'].keys())}")
for node_id, node_out in history["outputs"].items():
print(f" Node {node_id}: {list(node_out.keys())}")
if "status" in history:
print(f"Status: {history['status']}")
# Get output files # Get output files
outputs = get_output_files(history) outputs = get_output_files(history)