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?
prefect-job logs in the pod:
same run logs in the UI:
10 months ago
@Mathijs Schoorl I don’t know how it was handled in previous Prefect versions, but
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.