Skip to content
This repository was archived by the owner on Jul 9, 2018. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

124 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

travetto: Schedule

This module provides the ability to execute functionality at specific intervals within the application. Under the covers, the module wraps cron. The scheduling api provides high level constructs for simple intervals, and , and job termination. Also manages all outstanding jobs, and will terminate all jobs on shutdown.

Additionally, supports the full cron syntax for any specific scheduling needed.

@Injectable()
class Scheduling {

  async heartbeat() {
    Scheduler.perMinute(() => {
      ... request against server ...
      if (!alive) {
        ... handle status ...
      }
    });
  }
}

About

Managed registry for scheduling jobs using cron expressions.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages