• v

    Vitaly Shulgin

    2 years ago
    got
    [10 Sep 2020 1:34am]: Failed to load and execute Flow's environment: FileNotFoundError(2, 'No such file or directory')
  • v

    Vitaly Shulgin

    2 years ago
    with simplest task
    @task
    def hello_task():
        pass
  • v

    Vitaly Shulgin

    2 years ago
    flow created with
    python hello.py
  • v

    Vitaly Shulgin

    2 years ago
    where hello.py
  • v

    Vitaly Shulgin

    2 years ago
    import logging
    import prefect
    from prefect import task, Flow
    from prefect.environments import LocalEnvironment
    
    @task
    def hello_task():
        pass
    
    flow = Flow("hello-flow", tasks=[hello_task])
    flow.environment = LocalEnvironment(labels=["any"])
    flow.register(project_name="Hello")
    v
    Chris White
    15 replies
    Copy to Clipboard
  • Yufei

    Yufei

    2 years ago
    @Marvin
  • Marvin

    Marvin

    2 years ago
    Don't feel you have to take any notice of me, please. I'll just enter you in the contest @Yufei.
    Marvin
    Pedro Machado
    2 replies
    Copy to Clipboard
  • s

    Sandeep Aggarwal

    2 years ago
    @Marvin
  • Marvin

    Marvin

    2 years ago
    Don't feel you have to take any notice of me, please. I'll just enter you in the contest @Sandeep Aggarwal.
  • Kyle McEntush

    Kyle McEntush

    2 years ago
    @Marvin what happened to your body?