node-gearman icon indicating copy to clipboard operation
node-gearman copied to clipboard

Multiple functions in one worker?

Open omitech opened this issue 4 years ago • 0 comments

Can I add multiple functions in one worker, like worker.addFunction('func1'); worker.addFunction('func2')? And how to distinguish received request in worker.on('JOB_ASSIGN', function(job){ ... } Only by job.func_name ?

Or should I simply create multiple worker instances let worker1 = gearman(); let worker2 = gearman() ?

omitech avatar Aug 05 '21 06:08 omitech