Files
bull/test/fixtures/fixture_processor_exit.js
T
2019-01-17 14:20:53 +03:00

16 lines
238 B
JavaScript

/**
* A processor file to be used in tests.
*
*/
'use strict';
const delay = require('delay');
module.exports = function(/*job*/) {
return delay(500).then(() => {
delay(100).then(() => {
process.exit(0);
});
});
};