https://prefect.io logo
Title
f

Farid

05/07/2023, 11:39 PM
Hey everyone, I have encountered an issue while running a Prefect flow that runs dbt. The flow got stuck halfway through the run with no appropriate error messages. After waiting for two days, it was still in the running stage. I checked the logs in the Kubernetes pod running the flow code and found the message that I have attached below.
Successfully installed Babel-2.12.1 .... It is recommended to use a virtual environment instead: <https://pip.pypa.io/warnings/venv>

[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip
/usr/local/lib/python3.9/runpy.py:127: RuntimeWarning: 'prefect.engine' found in sys.modules after import of package 'prefect', but prior to execution of 'prefect.engine'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
01:14:11.382 | INFO    | Flow run 'spiffy-platypus' - Downloading flow code from storage at 'snowflake_dbt_transformations'
01:14:16.788 | INFO    | prefect.engine - Engine execution of flow run 'a8432976-2131-441a-8d98-01740500ba8e' aborted by orchestrator: This run cannot transition to the RUNNING state from the RUNNING state.
Has anyone else encountered a similar issue? Any idea what might be causing this? I would appreciate any help or insights on this. Thank you in advance!
The issue hasn't happened again after updating both the server and agent to
prefect==2.10.8
.