summaryrefslogtreecommitdiff
path: root/ick2/workerapi.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@exolobe1>2018-05-13 15:30:23 +0300
committerLars Wirzenius <liw@liw.fi>2018-05-17 21:44:59 +0300
commitb11d31ef23c5dfee6bfa54afbec47fc8b8bab7b1 (patch)
tree2e6b085f8fb023d53c8ac20a97aef2c7d1c11d4b /ick2/workerapi.py
parent531dd2c50bfdfcf50bb37f57cf9fc2b69787adcf (diff)
downloadick2-b11d31ef23c5dfee6bfa54afbec47fc8b8bab7b1.tar.gz
Change: how controller stores persistent data
Replace old State class with new FilePersistentState and TransactionalState classes. Use new Resource class instead of raw dicts. Use context managers for creating, updating resources, to avoid mistakes from accidentally not saving changes. Overall persistence should now be rather simpler. This should open up a possibility for changing the controller to insert more actions into the build graph, to trigger notifcations via the workers.
Diffstat (limited to 'ick2/workerapi.py')
-rw-r--r--ick2/workerapi.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/ick2/workerapi.py b/ick2/workerapi.py
index 2af240e..d4b508c 100644
--- a/ick2/workerapi.py
+++ b/ick2/workerapi.py
@@ -32,9 +32,6 @@ class WorkerAPI(ick2.ResourceApiBase): # pragma: no cover
return client_id
def create(self, body, **kwargs):
- ick2.log.log(
- 'trace', msg_text='create worker', body=body, kwargs=kwargs)
-
client_id = self._get_client_id(**kwargs)
body['worker'] = client_id
return super().create(body, **kwargs)