Skip to content

Dagger is a Python micro framework that performs tasks, providing you with parallel execution, and dependency resolution.

License

Notifications You must be signed in to change notification settings

trustyou/dagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dagger

Dagger performs tasks, providing you with parallel execution, and dependency resolution.

Workflows are defined as graphs (directed acyclic graphs … get it?). You tell dagger to run certain tasks, and it makes sure that dependencies are discovered and run in a correct order.

Tasks are run in a process pool of configurable size.

You define tasks by subclassing Task:

class DoStuff(Task):

    def run(self):
        print("Look at me, I'm runniiiiiing ...")

Tasks accept two parameters during creation

  • config: Something picklable to customize the tasks behavior at runtime
  • dependencies: A list of Task instances that need to be done before we start this task

If task execution fails, a DaggerException is raised, with information about which tasks completed and which failed.

See also examples folder.

About

Dagger is a Python micro framework that performs tasks, providing you with parallel execution, and dependency resolution.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages