Josh
04/09/2021, 4:27 PMterminal_state_handlers
on Flow objects that will cause a flow to fail if they aren’t present even though the 0.14.15 version defaults to None.
• log_output
on the ExecuteNotebook
class that defaults to False on the 0.14.15 version, but the execution fails if a flow on a previous version is being run with the attribute not specifiedChris White
Josh
04/09/2021, 4:31 PMChris White
Chris White
Josh
04/09/2021, 4:41 PMChris White
Josh
04/09/2021, 4:42 PMChris White
Josh
04/09/2021, 4:43 PMUnexpected error: AttributeError("'XXXFlow' object has no attribute 'terminal_state_handler'")
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/prefect/engine/runner.py", line 48, in inner
new_state = method(self, state, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/prefect/engine/flow_runner.py", line 673, in get_flow_run_state
terminal_states=terminal_states,
File "/usr/local/lib/python3.7/site-packages/prefect/engine/flow_runner.py", line 720, in determine_final_state
if self.flow.terminal_state_handler:
AttributeError: 'XXXFlow' object has no attribute 'terminal_state_handler'
Chris White
stored_as_script=True
in your Docker storage initializationJosh
04/09/2021, 4:50 PM"Labels": {
"io.prefect.python-version": "3.7.10",
"org.label-schema.build-date": "2021-03-10T23:07:06Z", "org.label-schema.name": "prefect",
"org.label-schema.schema-version": "= 1.0", "org.label-schema.url": "<https://www.prefect.io/>",
"org.label-schema.vcs-ref": "dea6358fe1bf623965d9538372c1cb5a76fd19a7",
"org.label-schema.version": "0.14.12"
}
Chris White
Josh
04/09/2021, 4:52 PMprefect version
after attaching to a container run of the image, I get 0.14.15
Chris White
Josh
04/09/2021, 4:53 PMstored_as_script
option do? I see if True, it stores the script as .py
but what is the alternative if False?Josh
04/09/2021, 4:54 PMstored_as_script
?Chris White
Josh
04/09/2021, 4:56 PMpath
attribute in my Docker Storage initialization, it’s still using the pickled Flow?Chris White
stored_as_script=True
it will always use the pickled flow artifactChris White
Marvin
04/09/2021, 4:58 PMJosh
04/09/2021, 5:00 PMstored_as_script=True
so that the python script itself is executed on the agent? Will that mean the script is executed on the agent’s prefect version, or the built image’s prefect version?Josh
04/09/2021, 5:02 PMstored_as_script=True
, will it still lead to issues?Chris White
Chris White
Josh
04/09/2021, 5:07 PMJosh
04/09/2021, 5:07 PMChris White