diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-07-21 11:45:29 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-08-03 21:06:50 +0300 |
commit | 7a6bc2f7749c10c1d3344ea0196e81ae95b7f0d7 (patch) | |
tree | e52472ac9665bc21886ccf27b7a79e76079d6afe /ick2/workapi.py | |
parent | 4f2207571928dc685102e3b3ff55e79cd3d46b6d (diff) | |
download | ick2-7a6bc2f7749c10c1d3344ea0196e81ae95b7f0d7.tar.gz |
Add: TokenGetter
Diffstat (limited to 'ick2/workapi.py')
-rw-r--r-- | ick2/workapi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ick2/workapi.py b/ick2/workapi.py index 3eeb0fa..7ff6f93 100644 --- a/ick2/workapi.py +++ b/ick2/workapi.py @@ -41,6 +41,7 @@ class WorkAPI(ick2.APIbase): ] def get_work(self, token=None, **kwargs): + token = self._token_getter.get_token() worker_id = self._get_client_id(**kwargs) ick2.log.log( 'trace', msg_text='Worker wants work', worker_id=worker_id) @@ -140,6 +141,8 @@ class WorkAPI(ick2.APIbase): return None def update_work(self, update, token=None, **kwargs): + token = self._token_getter.get_token() + try: worker_id = update['worker'] build_id = update['build_id'] |