https://prefect.io logo
Title
m

Marcos

03/14/2023, 10:48 AM
Hi! A very QQ - Does anyone know at where local PATH inside the
prefect-agent
container, the agent downloads the content of an S3 Block with flows for a deployment?
I'm basically trying to use a local Python package that needs to be used alongside the Prefect flows. At the moment, it fails because it cannot find a package that's supposed to be installed in the environment. Although, I'd love to self-contain all dependencies (including this Python package) withing the Prefect deployment package that goes to the s3 bucket.
I was wondering if Prefect support some sort of
hooks
to execute commands right after (for example) the deployment code is fetched from an S3 bucket
I solved this problem by importing the actual package using
sys.path.append(<LocalDir>)