firstandthird / hapi-agenda

5 stars 3 forks source link

pass in directory of tasks #3

Closed jgallen23 closed 9 years ago

jgallen23 commented 9 years ago

Object - some-task.js - new job defined as 'here is a task'

module.exports = {
  name: 'here is a task',
  job: function(data, done) {
  },
  concurrency: 10
}

Fn - some-task.js - new job defined as 'some-task'

module.exports = function(data, done) {
}

any other things we should consider?

jgallen23 commented 9 years ago

we need to make sure the job has access to the server object. Maybe this?