A scheduling plugin for Twisted
Project description
Introduction
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 twisted.scheduling 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.
Contributors
Benjamin Liles <benliles@gmail.com>
Changelog
1.0 (2010/06/02)
Rename package to twisted.scheduling
Cleaned up code and added some more error handling
Cleaned up test code
1.0b1 (2008/12/10)
twistedschedule.task.ScheduledCall completed
twistedschedule.cron.CronSchedule completed
unittests added for twistedschedule.task.ScheduledCall
unittests added for twistedschedule.cron
0.1 (Unreleased)
Planning phase
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file TxScheduling-1.0.tar.gz
.
File metadata
- Download URL: TxScheduling-1.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72bdbbd1225c5c59327cb8729773b6b4749a598d2a2732d11e9ef1888540ea13 |
|
MD5 | 2f399c65d4f196ea70f68e113690d5c1 |
|
BLAKE2b-256 | 5c0b896d4f722ff452678d0d4fc63189bdb550d69e4e18aefa9dfd1f7f820b30 |