Hey everyone, I have encountered an issue while ru...
# prefect-community
f
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.
Copy code
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
.
f
Hi Farid, I repeatedly get a similar issue which randomly (but frequently) occurs.
server sent an abort signal: This run is in a PENDING state and cannot transition to a PENDING state.
I'm using Prefect agent 2.7.0 and Prefect Cloud. Have you found any solutions?
f
@Frits De Roos I recommend updating the agent to a higher version, my understanding is this was a bug that has been resolved.
f
Alright, I'm going to try that. Thanks for the help!
👍 1
Ah and now I see I didn't read your previous comment on updating the agent🙈 thanks again!
😄 1