• prefect


    prefect

    https://github.com/PrefectHQ/prefect

    https://docs.prefect.io/

    Prefect

    We've rebuilt data engineering for the data science era.

    Prefect is a new workflow management system, designed for modern infrastructure and powered by the open-source Prefect Core workflow engine. Users organize Tasks into Flows, and Prefect takes care of the rest.

    Demo code

    Prefect's Pythonic API should feel familiar for newcomers. Mark functions as tasks and call them on each other to build up a flow.

    from prefect import task, Flow, Parameter
    
    
    @task(log_stdout=True)
    def say_hello(name):
        print("Hello, {}!".format(name))
    
    
    with Flow("My First Flow") as flow:
        name = Parameter('name')
        say_hello(name)
    
    
    flow.run(name='world') # "Hello, world!"
    flow.run(name='Marvin') # "Hello, Marvin!"

    安装

    https://docs.prefect.io/core/getting_started/installation.html

    https://docs.docker.com/compose/install/

    发布

    https://docs.prefect.io/orchestration/concepts/flows.html#registration

    https://docs.prefect.io/api/latest/cli/create.html

    prefect create project  "my project"

     prefect register --project "my project" --path test.py

    出处:http://www.cnblogs.com/lightsong/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。
  • 相关阅读:
    CodeForces1422A
    C++
    2020第十一届蓝桥杯第一场 B组 C/C++
    Aizu0118
    POJ1979
    monkey 稳定性测试
    adb shell 杀进程以及端口占用,adbserver服务重启失败
    windows查询端口,杀进程
    apk 测试入门基本操作
    解决 genymotion 安装apk报错 app contains ARM native code and your Genymotion device cannot run ARM instructions
  • 原文地址:https://www.cnblogs.com/lightsong/p/15035783.html
Copyright © 2020-2023  润新知