Hi All, question regarding logs in the prefect UI. We mostly use the RunNamespacedJob Task with the option log_level='info' to make sure the logs also show in the prefect logs. This worked fine in version 0.14.10. Recently we upgraded to 0.15.3 and I'm noticing that the logs don't show up in the prefect ui anymore. The logs do show up in the prefect-flow pod. Any idea how to fix this?
Mathijs Schoorl
11/05/2021, 9:47 AM
prefect-job logs in the pod:
Mathijs Schoorl
11/05/2021, 9:47 AM
same run logs in the UI:
a
Anna Geller
11/05/2021, 10:24 AM
@Mathijs Schoorl I don’t know how it was handled in previous Prefect versions, but
RunNamespacedJob
task doesn’t collect its logs to the backend. For that you would have to leverage
Hi Anna, I'll look into it your example. As far as I know the RunNamespacedJob does read logs when you enable it and in the background uses ReadNamespacedPodLogs. But like I said the logs are indeed read and visible in the job pod log but not in the ui.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.