Tony Yun
10/21/2021, 9:04 PMZanie
Tony Yun
10/21/2021, 9:05 PMZanie
prefect.context["flow_run_id"]
inside a task)Tony Yun
10/21/2021, 9:07 PMTony Yun
10/21/2021, 9:11 PMState
class, there seems no is_cancelled
state 😢Zanie
isinstance(flow_run_view.state, prefect.states.Cancelled)
Tony Yun
10/21/2021, 9:12 PMZanie
flow_run_view.state.is_finished() and not (flow_run_view.state.is_failed() or flow_run_view.state.is_successful())
Tony Yun
10/21/2021, 9:12 PMZanie
is_cancelled
check to State
on Github 😄Tony Yun
10/21/2021, 9:16 PMif cancelled, do X
?..Tony Yun
10/21/2021, 9:16 PMtry: X, except Y, finally Z
wayTony Yun
10/21/2021, 9:21 PMTony Yun
10/21/2021, 9:32 PMfrom prefect.backend import FlowRunView
ModuleNotFoundError: No module named 'prefect.backend'
I’m using Prefect==0.15.5Tony Yun
10/21/2021, 9:33 PMZanie
Zanie
Zanie
import prefect
and print(prefect.__version__)
in that same environment?Tony Yun
10/21/2021, 9:34 PMTony Yun
10/21/2021, 9:35 PMBeginning health checks...
System Version check: OK
Traceback (most recent call last):
File "/opt/prefect/healthcheck.py", line 152, in <module>
flows = cloudpickle_deserialization_check(flow_file_paths)
File "/opt/prefect/healthcheck.py", line 44, in cloudpickle_deserialization_check
flows.append(cloudpickle.loads(flow_bytes))
ModuleNotFoundError: No module named 'prefect.backend'
Zanie
Tony Yun
10/21/2021, 9:36 PMZanie
prefect version
different?Tony Yun
10/21/2021, 9:37 PMZanie
Tony Yun
10/21/2021, 9:37 PMstorage = Docker(
base_image="prefecthq/prefect:0.14.9-python3.7",
Tony Yun
10/21/2021, 9:38 PMTony Yun
10/21/2021, 9:39 PMZanie