Skip to content

Cron string validation #126

Description

@woodruffw

This is another nice-to-have: a crontab(5) validator.

Some challenges: crontab(5) has a standard minimal language, but lots of cron implementations provide extensions like @hourly, as well as custom field values.

If third party dependencies aren't an issue, both crontab and croniter provide validation methods:

from crontab import CronSlices
CronSlices.is_valid("* * * * *")
import croniter
croniter.is_valid("* * * * *")

It looks like the former supports more extensions than the latter.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssue/PR: A new featureoutdatedIssue/PR: Open for more than 3 months

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions