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

Support for '@' expressions #318

Merged
merged 6 commits into from
May 6, 2024
Merged

Support for '@' expressions #318

merged 6 commits into from
May 6, 2024

Conversation

HB9HIL
Copy link
Contributor

@HB9HIL HB9HIL commented May 5, 2024

Added support for '@' expressions.

@Yearly = 0 0 1 1 *
@annually = 0 0 1 1 *
@monthly = 0 0 1 * *
@Weekly = 0 0 * * 0
@daily = 0 0 * * *
@midnight = 0 0 * * *
@hourly = 0 * * * *

The @ expressions gots translated in a basic cron and given to the origin parse function. Let me know what you think.

@bradymholt
Copy link
Owner

Nice!

Would you be up for adding something to README mentioning this? Maybe an item on the Features list and a usage example?

Copy link
Contributor Author

@HB9HIL HB9HIL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure no problem :)

@bradymholt
Copy link
Owner

@HB9HIL Looks like there are some test failures.

@HB9HIL
Copy link
Contributor Author

HB9HIL commented May 6, 2024

@HB9HIL Looks like there are some test failures.

upps. I forgot to catch the empty case.

I also added the necessary tests. Sorry :)

'@monthly': '0 0 1 * *',
'@weekly': '0 0 * * 0',
'@daily': '0 0 * * *',
'@midnight': '0 0 * * *',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@midnight - I'm not aware of a cron implementation that supports this. Is there one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner

@bradymholt bradymholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bradymholt bradymholt merged commit d546f8a into bradymholt:main May 6, 2024
2 checks passed
Copy link

github-actions bot commented May 6, 2024

The changes in PR were just released in v2.50.0 🎉.

@HB9HIL
Copy link
Contributor Author

HB9HIL commented May 6, 2024

Thanks!

Thanks to you :)

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

Successfully merging this pull request may close these issues.

2 participants