Use change listener in workers
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Tue, 24 Oct 2017 09:55:06 +0000 (11:55 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 27 Apr 2018 15:43:52 +0000 (17:43 +0200)
commit1e273354e2f6f35ff9514df8f2cc14d0094d301b
tree6e59a7e3661a5c7257bd656db3adb0854b155efc
parent167a3729197514cb851efdd2138fa3a68f385d53
Use change listener in workers

Notify WorkerChange listener (if registered) about changes of worker state:
* when worker becomes IDLE;
* when worker's work was break by entering FAIL or MAINTENANCE state.

Change-Id: Ia5350912871d7ac6d1454dc5f0ae74155e811850
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
workers/worker_list_test.go
workers/workers.go