https://prefect.io logo
#prefect-community
Title
# prefect-community
y

yu zeng

06/13/2022, 3:20 PM
ModuleNotFoundError("No module named '/root/'") , is there anybody meet thish prob. when run. a flow on. k8s agent ?
1
k

Kevin Kho

06/13/2022, 3:49 PM
Hi @yu zeng, that is related to this
Could you move the code to this thread when you get a chance to keep the channel more compact? 🙂
a

Anna Geller

06/13/2022, 6:45 PM
Cleaning up the main channel :)
Copy code
import prefect
from prefect import task, Flow
@task
def say_hello():
    print('123')
    # logger = prefect.context.get("logger")
    # <http://logger.info|logger.info>("Hello, Cloud!")
with Flow("hello-flow2") as flow:
    say_hello()
# flow.run()
flow.register(project_name="test2")
6 Views