Mohammad GH
07/22/2021, 9:08 AM09:32:17 INFO CloudFlowRunner Flow run SUCCESS: all reference
tasks succeeded 09:32:17 ERROR CloudFlowRunner Unexpected error:
AttributeError("'Flow' object has no attribute
'terminal_state_handler'") Traceback (most recent call last): File
"/usr/local/lib/python3.8/site-packages/prefect/engine/runner.py", line
48, in inner new_state = method(self, state, *args, **kwargs) File
"/usr/local/lib/python3.8/site-packages/prefect/engine/flow_runner.py",
line 669, in get_flow_run_state state = self.determine_final_state(
File
"/usr/local/lib/python3.8/site-packages/prefect/engine/flow_runner.py",
line 720, in determine_final_state if
self.flow.terminal_state_handler: AttributeError: 'Flow' object has no
attribute 'terminal_state_handler'
Zach Angell
Mohammad GH
07/22/2021, 1:49 PMKevin Kho
Mohammad GH
07/22/2021, 1:52 PMMohammad GH
07/22/2021, 1:52 PMKevin Kho
Mohammad GH
07/22/2021, 2:23 PMflow.storage = Docker(
base_image="prefecthq/prefect:0.14.22-python3.8",
registry_url=f"{registry_url},
image_name=f"{image_name}",
image_tag="latest",
python_dependencies=[f"{pip_packages}"],
)
flow.run_config = KubernetesRun(
image=f"{registry_url}/{image_name}",
labels=['k8s']
)
Kevin Kho
IfNotPresent
so there are cases where the image doesn’t update and you have to do`flow.run_config = KubernetesRun(image_pull_policy="Always")` . If you check the pod, do you see the 0.14.22?Mohammad GH
07/22/2021, 2:29 PMMohammad GH
07/22/2021, 2:30 PMMohammad GH
07/22/2021, 3:36 PMMohammad GH
07/22/2021, 3:36 PMKevin Kho