Skip to content

Light weight job scheduling tool with more performance and scalability.

License

Notifications You must be signed in to change notification settings

Jack-Kingdom/marius

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marius


Light weight job scheduling tool with more performance and scalability.
Name come from Gaius Marius

Installation

pip install marius

Usage Example

import time
from marius import Task, TimeLine


def func(num):
    print('task-{0}'.format(num))


if __name__ == '__main__':
    tl = TimeLine()
    now = time.time()
    tl.add(Task(iter([now + i for i in [2, 3, 5]]), func, 3))
    while tl.has_tasks():
        tl.wait_next()
        tl.run()
    else:
        print("all job run over")

TODO

  1. add automatic test support
  2. add more helper function
  3. add doc

Welcome to contribute

Feel free to open a issue or start a pull request.
You are welcome.

About

Light weight job scheduling tool with more performance and scalability.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published