Prabin Mehta
06/22/2021, 9:21 AMFile "/usr/local/lib/python3.8/site-packages/prefect/client/secrets.py", line 137, in get
value = secrets[self.name]
ciaran
06/22/2021, 9:46 AMPrabin Mehta
06/22/2021, 11:03 AMwith Flow(name="schema-generator",state_handlers=[handler],
storage=GitHub(repo="prefect-flows",
path="flows/schema_generator.py",access_token_secret="GITHUB_ACCESS_TOKEN"),
run_config=KubernetesRun(image="prefecthq/prefect:0.14.22-python3.8",
env={"EXTRA_PIP_PACKAGES": "msgpack==1.0.0 lz4==3.1.1 numpy==1.18.1 prefect[snowflake]"}),
executor=DaskExecutor("<tcp://dask-scheduler:8786>"),
result=PrefectResult()) as flow_schema_generator:
schema = Parameter("schema", default=[])
_create_schema(schema=schema)
2. This is the flow where I am passing ecr repo which have the prefect image installed with all dependencies. This is giving me the above mentioned error in job pods.
with Flow(name="schema-generator",state_handlers=[handler],
storage=GitHub(repo="prefect-flows",
path="flows/schema_generator.py",access_token_secret="GITHUB_ACCESS_TOKEN"),
run_config=KubernetesRun(image="ecr_link/prefect-aura-image:latest",
image_pull_secrets=["secret"]),
executor=DaskExecutor("<tcp://dask-scheduler:8786>"),
result=PrefectResult()) as flow_schema_generator:
schema = Parameter("schema", default=[])
_create_schema(schema=schema)
ciaran
06/22/2021, 11:32 AMPrabin Mehta
06/22/2021, 12:21 PMciaran
06/22/2021, 12:27 PMPrabin Mehta
06/22/2021, 12:33 PMciaran
06/22/2021, 12:35 PM