Cron Schedule Triggers (CSTriggers) is a Python library (version 0.0.11) for determining future execution dates based on Quartz Job Scheduler cron syntax. It is not a scheduler itself, but a utility to calculate trigger dates for integration into other scheduling systems. The last release was in November 2019, suggesting a maintenance-level activity rather than active development.
pip install cron-schedule-triggersVerified import paths — ran on the pinned version, not inferred.
Initializes a `QuartzCron` object with a cron string and start/end dates, then retrieves the next scheduled trigger date. Note the use of `datetime` objects for date parameters and the 7-field Quartz cron syntax.
Refer to Quartz Cron documentation for correct syntax. Always include the seconds field (position 1) and use `?` for 'no specific value' to resolve conflicts between day-of-month and day-of-week fields.
Understand that `cron-schedule-triggers` is a date calculation utility. Pair it with a separate execution mechanism if you need to run scheduled tasks.
Convert the 5-field UNIX cron string to a 7-field Quartz cron string. Prepend a '0' for the seconds field and add a '?' for the day-of-week (or year if not used) to align with Quartz syntax. Example: `0 * * * * ? *` for 'every minute'.
In Quartz cron, you must use `?` in *one* of the 'day-of-month' or 'day-of-week' fields if the other has a specific value. For example, to run on the 15th of every month, use `0 0 0 15 * ? *`. To run every Monday, use `0 0 0 ? * MON *`. If both are `*`, it acts as an OR, which might not be the desired behavior or can lead to unexpected results.
No dependency data recorded yet.
No resource links recorded.