Skip to content

Feature: alternative to CRON date format #1

Description

@UlisesGascon

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions