Skip to main content

A scheduling plugin for twisted

Project description

Motivation

Twisted provides excellent support for creating delayed calls and looping calls, but when a daemon runs for extended periods of time, it is often necessary to schedule tasks to run in a manner that would be more easily described by a schedule instead of a number of seconds delay. The twistedschedule module provides an interface for describing a schedule and a single implementation, a subset of the cron schedules from linux/Unix. In order to use these schedules, a ScheduledCall class has been created that acts like the twisted.internet.task.LoopingCall class. In the future, an extension of the twisted.application.internet.TimerService may be provided that would use the ScheduledCall instead of LoopingCall to provide a similar service.

Cron

The cron syntax used follows the crontab syntax listed on the Wikipedia page with the exceptions of the names of the days of the week which is not supported and the shortcuts which are also not supported.

http://en.wikipedia.org/wiki/Cron

1.0b1

  • twistedschedule.task.ScheduledCall completed

  • twistedschedule.cron.CronSchedule completed

  • unittests added for twistedschedule.task.ScheduledCall

  • unittests added for twistedschedule.cron

0.1

Planning phase. A few different ideas were tested before deciding upon the current implementation.

Project details


Download files

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

Source Distribution

twistedschedule-1.0b1.tar.gz (11.1 kB view details)

Uploaded Source

File details

Details for the file twistedschedule-1.0b1.tar.gz.

File metadata

File hashes

Hashes for twistedschedule-1.0b1.tar.gz
Algorithm Hash digest
SHA256 6f277d57db41eb566ec712f41de4d9cee8f06a80996f63724782214c2567e4fc
MD5 f06c1d332c06ce5a996686e37e9d93a3
BLAKE2b-256 186479eae6b6b7b5f9fe1e43259ebc3564d0efe1d134b259345d8e49d35462fd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page