agronholm / agronholm/apscheduler

Cron trigger support for step values greater than the maximum

Ouverte
#509 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
7.6k
Forks
783
Merge moyen
4 j 8 h
PR mergées (30 j)
5

Description

**Is your feature request related to a problem? Please describe.**
I recently migrated a workload from Vixie cron to APScheduler, and discovered that the cron trigger only supports a subset of the Vixie crontab format.

Specifically, we had a couple of jobs configured with `*/60 * * * *` to run every 60 minutes. I assume this is equivalent to `0 * * * *`. cron accepted this, but APScheduler rejects it: https://github.com/agronholm/apscheduler/blob/d10f20215d8c78e9e2d32d634f276bb89f86ca38/apscheduler/triggers/cron/expressions.py#L34

That particular example isn't that useful, but it turns out that things like `*/90 * * * *` are also allowed.

**Describe the solution you'd like**
It would be nice to support this in APScheduler for greater compatibility with cron.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.