Skip to content

Young1906/notairflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTAIRFLOW

Installtion

pip install git+https://github.com/young1906/notairflow#v0.0.2

Examples

from NOTAIRFLOW import Task, Job


def TestJob() -> Job:
    with Job("test-job") as job:
        @Task.wrapper(job)
        def test01():
            print("x")

        @Task.wrapper(job)
        def test02():
            print("y")

        @Task.wrapper(job)
        def test03():
            print("z")

        # invalid job, contain cycle
        test01 >> test02
        test02 >> test03
        test01 << test03

    return job



if __name__ == "__main__":
    j = TestJob()
    j()

About

Simple implementation of a DAG

Resources

License

Stars

Watchers

Forks

Packages

No packages published