UNPKG
kued
Version:
beta (1.0.0)
latest (1.3.1)
1.3.1
1.3.0
1.2.4
1.2.3
1.2.2
1.2.1
1.0.1
1.0.0
Extensions for the Kue library (Daemonization, Checkpointing, etc.)
github.com/YEDev/kued
YEDev/kued
kued
/
lib
/
worker-factory.js
13 lines
(8 loc)
•
257 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
const
Utils
=
require
(
'./utils'
);
class
WorkerFactory
{
static
create
(
dependencyManager, workerConfig
){
return
Utils
.
loadComponent
(dependencyManager, workerConfig.
require
, workerConfig.
options
); } }
module
.
exports
=
WorkerFactory
;