Implement worker removal from the pool
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Thu, 8 Jun 2017 12:51:47 +0000 (14:51 +0200)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Wed, 20 Sep 2017 09:49:59 +0000 (11:49 +0200)
commit7d5188c948d29597adf13d780833d665673a96a8
treefd32acd2e9da019b13bd6351d4dfacd9a7a48f16
parent46e1236e609298cc2cbd181c37cb7d2920664b00
Implement worker removal from the pool

When Worker will not be used anymore, it should be removed in order
to free the resources. Administrator should first put Worker
in the MAINTENANCE state, using SetState, and then remove it,
using Deregister.

Change-Id: Ic9bb5e705418fae664857f3f541e9543ca7da9e2
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Reviewed-on: https://mcdsrvbld02.digital.local/review/49058
Reviewed-by: Maciej Wereski <m.wereski@partner.samsung.com>
Tested-by: Maciej Wereski <m.wereski@partner.samsung.com>
workers/error.go
workers/worker_list_test.go
workers/workers.go
workers/workers_test.go