Jackson Nguyen
12/03/2025, 1:16 AMMarvin
12/03/2025, 1:16 AMMarvin
12/03/2025, 1:19 AMprefect flow-run logs <FLOW_RUN_ID>
prefect task-run logs <TASK_RUN_ID>
Or view them in the UI on the flow/task run page.
- See worker diagnostics (Cloud): worker logs (polling, heartbeats, etc.) are visible in the Cloud UI under Work Pools → your worker. There’s no CLI for worker logs.
- Local debugging (Process worker): stream_output streams a flow’s subprocess stdout/stderr to the worker’s local terminal (default True), but it’s not forwarded remotely.
- Infra logs: if your worker runs under Docker/Kubernetes/systemd, use those tools to view the worker process’s stdout (e.g., docker logs, kubectl logs, journalctl).
If you can share where your worker runs (local, Docker, K8s, VM) and what you’re trying to observe (flow prints vs. worker health), I can suggest the most direct setup.