liren zhang
03/10/2021, 1:44 PMFailed to load and execute Flow's environment: NameError("name 'Local' is not defined")
I am not entirely sure where the name normal is from
Here is my sample code for reference:
from prefect import task, Flow
from prefect.run_configs import DockerRun
from prefect.storage.github import GitHub
@task
def say_hello():
print("Hello, world!")
with Flow(name="My first flow with Docker agent", storage=GitHub(repo="bbbb/aaaa-bdp", path="/PREFECT/hello_world_github.py", access_token_secret="GIT_ACCESS_TOKEN")) as flow:
say_hello=say_hello()
flow.run_config=DockerRun(labels=['<http://prefect.aaaa.com|prefect.aaaa.com>'])
#flow.run()
flow.register("first_prefect_project")
Jim Crist-Harif
03/10/2021, 2:41 PMJim Crist-Harif
03/10/2021, 2:42 PMliren zhang
03/10/2021, 3:29 PMJim Crist-Harif
03/10/2021, 4:11 PM619f5440
) actually point to the code you posted above? It might be that the flow that was executed isn't the flow you thought was executed.liren zhang
03/10/2021, 4:21 PMliren zhang
03/10/2021, 4:22 PMliren zhang
03/10/2021, 4:22 PMJim Crist-Harif
03/10/2021, 4:23 PM