Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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
============
1. 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>

2. 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()


3. Wait and see

In the ZMI, go to the CronTool. If a cronjob has run the history is shown.

Rationale
=========
Cron4plone uses the clockserver and allows advanced taask scheduling:

- scheduled tasks at scheduled times. E.g. I want to perform a certain
task at 3 AM at the first day of the month.

- single thread running the task: We don't want 2 threads running the
same task at the same time. With only using clock server this might
happen if a task takes longer than the tick period.


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

Metadata

Release files for Products.cron4plone 0.2dev-r86589

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Products.cron4plone 0.2dev-r86589
File Size Uploaded Provenance
Products.cron4plone-0.2dev-r86589.tar.gz 23.6 kB Without provenance Details

Release files / Products.cron4plone-0.2dev-r86589.tar.gz

Download URL Products.cron4plone-0.2dev-r86589.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
64785689bf7942bf6e951946e4f53ee3b30715543fa33ebd43d2c60d51df2525
BLAKE2b-256 checksum
How to use checksums
294b1d78319eb14dfe741be8e88abb08ce5014a2f49542b017221fbdb7e46049
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Products.cron4plone 0.2dev-r86589

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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