mirror of
https://github.com/OptimalBits/bull.git
synced 2026-07-02 08:27:43 +08:00
16 lines
238 B
JavaScript
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);
|
|
});
|
|
});
|
|
};
|