mattpat/node-schedule — Issue #6: References to job invocations
Author: nbose
Created: 2012-02-16 20:03:19+00:00
State: open

Hello,

It might help users that use this library to get a link back to some context when they scheduled the task.
I overrode the job.invoke method to send back the name (which is a key to a context that I have to execute the job when triggered back from the scheduler).

```
Job.prototype.invoke = function(recur) {
if (typeof (this.job) == 'function')
this.job(this.params);
};
```

Longer term, it might help to support a context object itself, that is passed in when someone schedules a job, which is passed back when the function is invoked.

Thanks,
Nithin