Skip to content

robanlee123/RobCron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data structure in this project


  • schedule job
    {
    'schedule_name' : 'scheduleName',
    'schedule_id' : 1,
    'schedule_rule' : '* * * * * ',
    'schedule_params' : 'php test.php',
    'schedule_timeout' : 60
    }
  • task
    {
    'task_name': 'scheduleName',
    'schedule_id': '5',
    'task_start': '1399950000',
    'task_status': '1',
    'task_created': '1399950000',
    'task_id': '77',
    'task_end': '1399950000',
    'task_exit_code': '1'
    }

Dependencies

Redis lib, run code to install :

npm install redis

Configurations

  1. change your enviroment by edit env.js
  2. find configuration file undef config and edit redis host & post
  3. run: node ./benches/addJob.js to adding a new job

Start!

run code:
node index.js

About author

Roban lee (robanlee at gmail dot com)
HTTP://WWW.RobanLee.COM

About

Nodejs-crontab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published