Thomas Nyegaard-Signori
06/14/2021, 10:01 AMStarted following logs for <task pod>
and then nothing more other than the completion and deletion log. Meanwhile, if I check the kubernetes job pod logs (kubectl logs -n my-namespace prefect-job-...
I see the logs of the task pod showing up nicely, just not being sent back to the the Agent/Server. Anyone have a similar experience and know of that one flag I'm missing?Kevin Kho
ReadNamespacedPodLogs
.Thomas Nyegaard-Signori
06/14/2021, 2:28 PMThomas Nyegaard-Signori
06/15/2021, 6:22 AMKevin Kho
ReadNamespacedPodLogs
?Thomas Nyegaard-Signori
06/15/2021, 2:07 PMkubectl
) but are not passed on to the UI.Thomas Nyegaard-Signori
06/15/2021, 2:07 PMThomas Nyegaard-Signori
06/15/2021, 2:08 PMMariia Kerimova
06/15/2021, 2:08 PMThomas Nyegaard-Signori
06/15/2021, 2:11 PMMariia Kerimova
06/15/2021, 3:42 PMlog_job = ReadNamespacedPodLogs(
pod_name="cmems-historical",
namespace="mariia-testing",
kubernetes_api_key_secret=None,
)
@task(log_stdout=True)
def print_logs(log_line):
print(log_line)
with Flow(
"CMEMS historical",
) as flow:
db_uri = Parameter("db_uri")
user = Parameter("user")
pw = Parameter("pw")
params = generate_body(db_uri, user, pw)
job(body=params, log_level="info")
logs = log_job()
print_logs(logs)
flow.register(project_name="")
Thomas Nyegaard-Signori
06/15/2021, 3:47 PMThomas Nyegaard-Signori
06/17/2021, 7:19 AMMariia Kerimova
06/17/2021, 9:33 PMMariia Kerimova
06/18/2021, 3:07 PMMarko Jamedzija
06/18/2021, 3:26 PMStarted following logs for xxxxxx
and the next line is Job xxxxxx has been completed.
The logs from the job pod are missing. Interestingly though, when I go to all logs from the flow, they are present there - they are only missing in the logs view for a specific task.Mariia Kerimova
06/18/2021, 4:14 PMthey are only missing in the logs view for a specific task.Thank you Marko for your feedback. Just to double check: you can see pod logs directly from the pod (
kubectl logs ...
), but not in UI, right? Just want to make sure we are seeing the same bug, and not another one 🙂Marko Jamedzija
06/18/2021, 4:15 PMkubectl logs ...
, but not in the UI as you mentioned.Marko Jamedzija
06/18/2021, 4:16 PMMarko Jamedzija
07/16/2021, 1:59 PMKevin Kho
Marko Jamedzija
07/16/2021, 2:04 PM