Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An undocumented behavior with years in Cron expressions #341

Open
sanchezcarlosjr opened this issue Jul 27, 2024 · 1 comment
Open

An undocumented behavior with years in Cron expressions #341

sanchezcarlosjr opened this issue Jul 27, 2024 · 1 comment

Comments

@sanchezcarlosjr
Copy link

sanchezcarlosjr commented Jul 27, 2024

The cron expression can consist of either six or five fields separated by white space, but the documentation states that it should only comprise five fields. I tested this before making the statement.

This implies that we can include years in the expression '* * * * * 2024' and one running cron expressions.
Am I wrong?

@sanchezcarlosjr sanchezcarlosjr changed the title An undocumented behavior with years in Cron expression An undocumented behavior with years in Cron expressions Jul 27, 2024
@marcoslot
Copy link
Collaborator

There's no logic to parse years in the pg_cron cron syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants