Skip to main content

Scheduler schedules python tasks to run at some delay time later

Project description

scheduler schedules python tasks to run at some delay time later.



pip install TaskScheduler

run some tasks some time later

from scheduler import Scheduler

def hello_world(words):
    print "Hello World! ", words

s = Scheduler()
s.daemon = True  # so the thread plays nice with shut down

# Add a task before starting the execution thread
s.schedule_task(5, hello_world, (" 5 seconds later",))

# start the execution thread

# Add more tasks
task = s.schedule_task(3, hello_world, ("Another Task",))

# reschedule a task
task.delay = 4
s.reschedule_task(task, )

# delete a task

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
TaskScheduler-0.0.4.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page