I've noticed that the new(er) `prefect run --watch...
# ask-community
b
I've noticed that the new(er)
prefect run --watch
(and similarly
watch_flow_run
) don't show any logs until my run has finished (at which point they all show up in one deluge), whereas
prefect run flow --logs
would stream them continuously. @Zanie is that the intended behavior or might something be amiss? in this case it was about 5 minutes of no logs, haven't tried with something even longer yet
hm https://github.com/prefecthq/prefect/blob/master/src/prefect/backend/flow_run.py#L146 this line is returning
[]
for the entire duration (everything after "Beginning flow run...") even though there are lots of logs in the UI... 🤔
z
This seems related to https://github.com/PrefectHQ/prefect/pull/5138 -- the default end time is the
updated_time
on the flow run object which is unchanged until the state changes.
This PR changes the default for
watch_flow_run
to poll with
pendulum.now()
so it should resolve what you're seeing.
b
ahhh got it, thanks!