firstandthird / hapi-agenda

5 stars 3 forks source link

pass in option to auto run every #5

Closed jgallen23 closed 9 years ago

jgallen23 commented 9 years ago

want to be able to pass in an object to the plugin that will auto run agenda.every. It will be used to auto set up maintenance tasks when the server starts up. Could look something like this:

{ 
  plugin: require('haps-agenda'), 
  options: {
    every: {
     '1 hour': 'some job name'
    }
  }
}