Yohann
05/03/2021, 7:40 AMKevin Kho
Yohann
05/03/2021, 2:13 PMfrom prefect import task, Task, Flow
from prefect.run_configs import LocalRun
import os
@task
def test_task():
print(os.environ.get("GREETING"))
return {}
with Flow('My Functional Flow') as flow:
flow.run_config = LocalRun(env={"GREETING": "Hello"})
res = test_task()
flow.run()
Kevin Kho
flow.run()
. You’d need to start an agent and start the flow from cloud/server to get this to workYohann
05/03/2021, 2:51 PMKevin Kho
Yohann
05/03/2021, 3:05 PM