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

[FEATURE] - support Cron expression #28

Closed
yisany opened this issue Apr 17, 2020 · 7 comments
Closed

[FEATURE] - support Cron expression #28

yisany opened this issue Apr 17, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@yisany
Copy link

yisany commented Apr 17, 2020

Maybe you can do something to support cron expression.
such as:
cron.Every("0/40 * * * * ? ").Do(task)

@yisany yisany added the enhancement New feature or request label Apr 17, 2020
@Streppel
Copy link
Member

Hey yisany, thanks for reaching out. This could be implemented indeed... will make a few adjustments to see how it currently fits in our api, but I think we'd use a whole new methods set for this to keep things simple

@Streppel Streppel added 0 - backlog enhancement New feature or request and removed enhancement New feature or request labels Apr 17, 2020
@excxapp
Copy link

excxapp commented Apr 21, 2020

I think this package can help parse cron expression
https://github.com/robfig/cron

@DonDebonair
Copy link

I would love to see this functionality as well. This library seems somewhat more robust and well maintained than https://github.com/reugn/go-quartz, but I want to be able to specify jobs in a config file, and cron expressions lend themselves really well for that.

Anyone going to work on this? I'm too new to Go to give it a shot sadly.

@Streppel
Copy link
Member

Streppel commented Apr 2, 2021

Hey @dandydev, thank you for the feedback. We're talking about this issue to see who's going to take it, but we have our eyes on it! :)

@JohnRoesler
Copy link
Contributor

It's definitely something we'd like to support! I will have a PR up soon

@JohnRoesler
Copy link
Contributor

@dandydev @excxapp @yisany test the master branch if you have a chance. cron support is available now 👍 we've just pulled in robfig's parser and leveraged that.

@JohnRoesler
Copy link
Contributor

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

No branches or pull requests

5 participants