Cron4Plone can do scheduled tasks in Plone
Project description
Product description
Cron4Plone can do scheduled tasks in Plone, in a syntax very like *NIX systems’ cron daemon. It plugs into Zope’s ClockServer machinery.
Installation
Configure the ticker in the buildout (or zope.conf):
[instance] ... eggs = ... Products.ClockServer zope-conf-additional = <clock-server> method /<your-plone-site>/@@cron-tick period 60 </clock-server>
Configure the scheduled tasks
In the Plone site setup, go to the cron4plone configuration. This form can be used to enter cron-like jobs.
The cron job should have 5 elements: minute, hour, day_of_month, month and command expression. For the command python and tal expression can be used.
definition: m h dom m command
Examples: * 11 * * portal/@@run_me 15,30 * * * python: portal.my_tool.runThis()
Wait and see
In the ZMI, go to the CronTool. If a cronjob has run the history is shown.
TODO
Day of week is missing in cron-like syntax, add it.
Improve doc test, currently test has basic coverage.
Perhaps make a configuration form that allows users without cron syntax knowledge to enter jobs.
License and credits
- Authors: “Huub Bouma”, mailto:bouma@gw20e.com
“Kim Chee Leong”, mailto:leong@gw20e.com
License: This product is licensed under the GNU Public License version 2. See the file LICENSE included in this product.
Parts of the code were taken from “PloneMaintenance”, http://plone.org/products/plonemaintenance by “Ingeniweb”, http://www.ingeniweb.com/.
Changelog
1.0 - Unreleased
Initial release
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 Products.cron4plone-0.2dev-r84501.tar.gz
.
File metadata
- Download URL: Products.cron4plone-0.2dev-r84501.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8a9d3faf1423ac081cd16c3d72e74c9203807262a0fc91b62ff0818c71fce37 |
|
MD5 | 925d4d204ff0e4a2764d6037b70c9cb8 |
|
BLAKE2b-256 | bfc167bf25069ef991985a74dde6b6e080cf9fdc187932fb108711eb4a5c2db9 |