Lior Barak
10/04/2023, 2:29 PMpull
stage
1. cloning from git
2. installing requirements
one of my flow requirements is boto3 (and obviously it is in the requirements.txt file)
every first flow run after agent's startup fails with this error:
"Flow could not be retrieved from deployment."
"exc_info":{"type":"ScriptError","message":"Script at 'flows/full_scan.py' encountered an exception: ModuleNotFoundError(\"No module named 'boto3'\")"
and the second flow onwards succeeds
if I install boto3 manually on the agent's terminal it works fine
but if I add this step to pull:
- prefect.deployments.steps.run_shell_script:
id: force-install-boto3
script: python3 -m pip install boto3==1.28.0
stream_output: true
the aforementioned behaviour continues
help?Bianca Hoch
10/04/2023, 8:56 PM"exc_info":{"type":"ScriptError","message":"Script at 'flows/full_scan.py' encountered an exception: ModuleNotFoundError(\"No module named 'boto3'\")"
>
> and the second flow onwards succeeds
>
Just to clarify, this is with the run_shell_script
added to your pull step? First flow run fails, then the next runs successfully?Lior Barak
10/05/2023, 7:40 AMBianca Hoch
10/05/2023, 4:43 PMLior Barak
10/05/2023, 6:23 PM