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 standard Cron like definitions #41

Open
fredleger opened this issue Aug 12, 2017 · 6 comments
Open

Support for standard Cron like definitions #41

fredleger opened this issue Aug 12, 2017 · 6 comments

Comments

@fredleger
Copy link

Is there any way to use the "standard" cron expressions with this package ?

something like:

gocron.Parse("00 07 * * *").Do(its7amTask())

The use case is to have the user define it's own logic from a config file.

@depado
Copy link

depado commented Aug 16, 2017

I don't think there is as this library mainly intends to redefine the way we work with cron-like jobs with a human-friendly syntax. There are several packages that could help you with that I think.
That would be an interesting thing to code though (parsing cron syntax and return a gocron scheduler)

@fredleger
Copy link
Author

Ok, good to me. Can you put some links to the mentioned package that can do that ?

@depado
Copy link

depado commented Aug 16, 2017

A simple search yields this result: https://github.com/gorhill/cronexpr
I'm not sure it's still maintained though

@zak905
Copy link

zak905 commented Apr 23, 2021

This is a great idea, I am wondering if there were any attempts to implement ?

@JohnRoesler
Copy link
Contributor

Hi @zak905! As the readme notes, this repo is no longer being maintained. We have an active fork over at https://github.com/go-co-op/gocron where we now support crontab expressions!

@zak905
Copy link

zak905 commented Apr 24, 2021

interesting, thanks for the info

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

4 participants