greentasks
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 arg1Schedule the task for asynchronous execution:
packaged_task = scheduler.schedule(AwesomeTask)
Wait for the result (if needed):
result = packaged_task.result.get()
Metadata
Release files for greentasks 2.0.post2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | |
|---|---|---|---|
| greentasks-2.0.post2.zip | 18.3 kB | Details | |
| greentasks-2.0.post2.tar.gz | 11.5 kB | Details |
Release files / greentasks-2.0.post2.zip
| Download URL | greentasks-2.0.post2.zip |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1d6c485887984a8e1b606dfe82f458c66b7a1b3e6dcf0a139abd82dfdb9ef32
|
|
BLAKE2b-256 checksum How to use checksums |
f257481a72243ce3ae62a3adfd1c4f16dae3c1f46d9a636f7c3ccb2a1a09b9cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / greentasks-2.0.post2.tar.gz
| Download URL | greentasks-2.0.post2.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dda51661e291f9aba0f9f078a963799a4c206c3d7417b0df981f46bc56d07a17
|
|
BLAKE2b-256 checksum How to use checksums |
730fe4a9f8beac44a2f23526b4375a11d8d746228530bfe741fac2254e48e930
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |