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: alternative to CRON date format #1

Open
UlisesGascon opened this issue May 25, 2016 · 0 comments
Open

Feature: alternative to CRON date format #1

UlisesGascon opened this issue May 25, 2016 · 0 comments

Comments

@UlisesGascon
Copy link
Contributor

Hi!

I was thinking that maybe is interesting to provide some alternatives when the CRON time is not a big requirement. Let's imagine that I want to run a task every 10 minutes, every day, twice a day, etc...

var Scheduled = require("scheduled");

var myJob = new Scheduled({
    id: "minuteTaskEven",
    pattern: "Twice a day", // Every day, Every Monday, Twice a week, etc...
    task: function(){
        console.log("Minuto par");
    }
}).start();

What do you think?

Thanks a lot in advance!

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

No branches or pull requests

1 participant