summaryrefslogtreecommitdiff
path: root/ick2/workapi.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-26 21:20:43 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-26 21:20:43 +0100
commit5eac22f430b144b45d09a6caba3bdd297b2cb481 (patch)
treebb7c232f5217034154e267a12f51a446b0350bdf /ick2/workapi.py
parent7b06ae78e20717161467affb37b88857e4fc610b (diff)
downloadick2-5eac22f430b144b45d09a6caba3bdd297b2cb481.tar.gz
Refactor: clear up code to update pipeline state
Also drop unnecessary update of project, since it hasn't changed.
Diffstat (limited to 'ick2/workapi.py')
-rw-r--r--ick2/workapi.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ick2/workapi.py b/ick2/workapi.py
index f84e355..9359150 100644
--- a/ick2/workapi.py
+++ b/ick2/workapi.py
@@ -149,13 +149,12 @@ class WorkAPI(ick2.APIbase):
actions = pipeline['actions']
if index >= len(actions):
pipeline['status'] = 'idle'
+ self._update_pipeline(project, pipeline)
doing = {}
self._finish_build(update)
else:
doing['step_index'] = index
doing['step'] = actions[index]
- self._projects.update_project(project)
- self._update_pipeline(project, pipeline)
worker_state = {
'worker': update['worker'],