-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing error logs in flow run timeline from KubernetesWorker
#15722
Comments
hi @DGolubets - on some level this is expected to me, i.e. your deployment's runtime is likely missing 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. Though UX would definitely be better if Prefect could handle this case. |
Agreed! I will mark this as an enhancement |
KubernetesWorker
In cases where the flow author does not have direct access to the infrastructure, this becomes a point of friction. For example, the flow author might be a data scientist who does not have direct access to their organization's kubernetes cluster. In this case, the data scientist would have to rely on their cluster owner to find and share the stack trace. |
My understanding is that these are errors that happen in the Runner. Errors that happen while provisioning infrastructure are captured in worker logs, and errors that happen in the context of a flow are captured in flow run logs, but between the infra being provisioned and the flow starting, logs are not captured. |
In addition to import errors I believe this would also happen with syntax errors. Suppose you create a deployment using git storage. After creating the deployment, you commit and push a syntax error. Starting a flow run will then retrieve the commit with a syntax error and crash, but not report logs. |
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
The text was updated successfully, but these errors were encountered: