worker: always clear workerInfo.worker before restarting a worker #2668

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
1 participant
Contributor

davecheney commented Jun 29, 2015

If a worker is being restarted, make sure that the previous Worker
reference is removed before starting a new one.

Rather than the previous situation where the Kill signal could be delivered
to a previous copy of the worker, this change will cause the runner to
continue to try to issue killAll, which will do nothing as there are no non nil
workerInfo.worker's registered in the worker map, until the new worker reference
is recieved via runner.startedc. At this point the killAll loop will then be able
to issue the Kill command to the correct copy of the worker.

(Review request: http://reviews.vapour.ws/r/2044/)

davecheney added some commits Jun 29, 2015

worker: always clear workerInfo.worker before restarting a worker
If a worker is being restarted, make sure that the previous Worker
reference is removed before starting a new one.

Rather than the previous situation where the Kill signal could be delivered
to a previous copy of the worker, this change will cause the runner to
continue to try to issue killAll, which will do nothing as there are no non nil
workerInfo.worker's registered in the worker map, until the new worker reference
is recieved via runner.startedc. At this point the killAll loop will then be able
to issue the Kill command to the correct copy of the worker.

@davecheney davecheney closed this Jun 29, 2015

@davecheney davecheney deleted the davecheney:workerinfo branch Jun 29, 2015

@davecheney davecheney restored the davecheney:workerinfo branch Sep 4, 2015

@davecheney davecheney deleted the davecheney:workerinfo branch Apr 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment