Bianca Hoch
10/16/2024, 2:58 PMBianca Hoch
10/16/2024, 2:58 PMKledia
10/16/2024, 3:00 PMsuggest_tags.perform.from_source(
source=f"<s3://lc-prefect-dateng-staging1-uswest2/{bucket_path}suggest_tags.py>",
entrypoint=entry_point,
).deploy(name="on-demand", work_pool_name="default", infrastructure=infrastructure)
Bianca Hoch
10/16/2024, 3:06 PMsource
, maybe you could try removing the suggest_tags.py
from the end of the path?Bianca Hoch
10/16/2024, 3:07 PMentrypoint
instead. ie:
entrypoint="my_file.py:my_flow"
Kledia
10/17/2024, 1:01 PMsuggest_privilege_tags.from_source(
source=storage,
entrypoint=entry_point,
).deploy(
name="on-demand",
work_pool_name="default",
job_variables={"env": {"EXTRA_PIP_PACKAGES": "prefect-aws"}},
infrastructure=infrastructure,
)
but I am getting an error like this: 'S3Bucket' object has no attribute 'set_base_path'
Bianca Hoch
10/17/2024, 1:31 PMBianca Hoch
10/17/2024, 1:31 PMBianca Hoch
10/17/2024, 1:33 PMKledia
10/17/2024, 1:33 PMKledia
10/17/2024, 1:34 PMstorage = S3Bucket.load("flow-code")
Kledia
10/17/2024, 2:02 PMKledia
10/21/2024, 2:36 PMBianca Hoch
10/21/2024, 7:54 PM