Open DGolubets opened 1 week ago
hi @DGolubets - on some level this is expected to me, i.e. your deployment's runtime is likely missing polars
as a dependency, so your code failed at import time before a flow run logger could be setup.
is your expectation that this line
ModuleNotFoundError: No module named 'polars'
is surfaced by the worker in the flow run logs? I think that's a very reasonable enhancement request
Hi @zzstoatzz
Thanks for quick reply. I wrongly assumed that Prefect collects the logs from pods stdout. If it send them from Python, then this behavior is understandable indeed.
Though UX would definitely be better if Prefect could handle this case.
Though UX would definitely be better if Prefect could handle this case.
Agreed! I will mark this as an enhancement
Bug summary
My deployment executing in K8s fails with an error (inspected with
kubectl logs
):But the flow logs in the UI don't have anything except:
Version info (
prefect version
output)Additional context
No response