https://prefect.io logo
a

Alexander

11/17/2020, 3:29 PM
Flow is in running state for 5 hours, but all tasks were finished 4 hours ago
Copy code
Flow run RUNNING: terminal tasks are incomplete.
But all tasks within flow are
success
. How can i debug this?
j

Jenny

11/17/2020, 3:34 PM
Hi Alexandr - is this just one flow run or every run for a particular flow? Some things I would check if trying to debug: • Are there any clues in the logs? • Is your agent still up and running? • If you've just seen this once, can you re-create with another flow run?
a

Alexander

11/17/2020, 3:49 PM
This is only one, particular flow run. Nothing special about it, only thing it was restarted to re-run failed flows. Agent is fine, and there are no flow runner containers (i use docker storage) running. I checked logs, and i see something strange there. First, i see traceback from prefect. Then i found that the flow was recheduled by lazarus. And then i found that for some reason it was scheduling a task which is not a part of current flow run flow version! The task was added in the next flow version. I cant see it in flow run task list or flow run schematic. Attaching a piece of recent logs
j

Jenny

11/17/2020, 4:05 PM
Ah yes - that restart would be the issue - You can only run the live version of a flow. That's true for restarting a flow run too. I'll add a ticket to update the UI to make that clearer.