Hello, there's something I don't understand, when ...
# prefect-community
j
Hello, there's something I don't understand, when launching a deployment using a KubernetesJob from the UI, I can see the logs of my Flow both in the Agent running in Kubernetes and in the Kubernetes Job pods. Is that expected? (my guess is no). Seems like it's executing my flow twice.
z
Do you have
stream_logs
set? We stream logs from the pod to the agent by default.
Sorry
stream_output
I think
j
ah ok, right, so that's only a copy of the outputs, not another run itself right ?
z
Almost certainly! You can toggle
stream_ouput
on the
KubernetesJob
if you want to be sure, but we have guards against two copies of the same flow run executing
j
can I turn it off from the agent, but keep the stream output to the pod of the KubernetesJob ?
Does not seem possible from the doc I read
z
The stream output setting is only for streaming to the agent
The pod will have the output still
j
super, thanks