mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Properly delete retired workers from worker list, or graceful exit gets confused.
This commit is contained in:
parent
753d839112
commit
ad0651a3b6
1 changed files with 2 additions and 1 deletions
|
@ -212,7 +212,8 @@ module.exports = function(options) {
|
||||||
return worker = workers[device.id] = spawn()
|
return worker = workers[device.id] = spawn()
|
||||||
.then(function() {
|
.then(function() {
|
||||||
log.info('Device worker "%s" has retired', device.id)
|
log.info('Device worker "%s" has retired', device.id)
|
||||||
worker = workers[device.id] = null
|
delete workers[device.id]
|
||||||
|
worker = null
|
||||||
})
|
})
|
||||||
.catch(procutil.ExitError, function(err) {
|
.catch(procutil.ExitError, function(err) {
|
||||||
log.error(
|
log.error(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue