We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff9dd7a commit bfb5603Copy full SHA for bfb5603
test/job.js
@@ -642,8 +642,8 @@ describe('Job', () => {
642
});
643
644
it('clears locks on stop', async() => {
645
- agenda.define('longRunningJob', job => { // eslint-disable-line no-unused-vars
646
- // Job never finishes
+ agenda.define('longRunningJob', (job, cb) => { // eslint-disable-line no-unused-vars
+ // Job never finishes (the 2nd parameter is important, otherwise the job finishes immediately)
647
648
agenda.every('10 seconds', 'longRunningJob');
649
agenda.processEvery('1 second');
0 commit comments