A simple task scheduler, built on top of gevent.
Project description
A very simplistic task scheduler built around gevent.
Usage
Create a task scheduler instance:
from greentasks import TaskScheduler scheduler = TaskScheduler()
Implement a task:
from greentasks import Task class AwesomeTask(Task): name = 'awesome' delay = 10 periodic = True def run(self, arg1, kw=None): return arg1
Schedule the task for asynchronous execution:
packaged_task = scheduler.schedule(AwesomeTask)
Wait for the result (if needed):
result = packaged_task.result.get()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
greentasks-2.0.zip
(17.6 kB
view hashes)
greentasks-2.0.tar.gz
(11.0 kB
view hashes)