Skip to main content

greentasks

A very simplistic task scheduler built around gevent.

Usage

  1. Create a task scheduler instance:

    from greentasks import TaskScheduler
    
    scheduler = TaskScheduler()
  2. Implement a task:

    from greentasks import Task
    
    class AwesomeTask(Task):
        name = 'awesome'
        delay = 10
        periodic = True
    
        def run(self, arg1, kw=None):
            return arg1
  3. Schedule the task for asynchronous execution:

    packaged_task = scheduler.schedule(AwesomeTask)
  4. 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)

Source distribution for greentasks 2.0.post2
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

Release history Release notifications | RSS feed

This release

2.0.post2 This release

2 release files

2.0

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page