Skip to content
This repository has been archived by the owner on May 1, 2018. It is now read-only.

ts-archive/teratask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teratask - Periodic and on demand node.js task runner

Dependencies

* Redis
* TeraFoundation

Task implementation

Tasks are defined as node.js modules.
    scheduler.schedule({
        task_name: 'my_task', // String task identifier
        queue_name: 'task:queue', // Redis queue to watch for tasks postings
        task: tasks.MyTask, // Task implementation 
        interval: 5000, // How often to wakeup the task and check the queue. (milliseconds)
        max_in_flight: 20 // maximum number of task instances that can be running
    }); 

About

Periodic task runner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published