summaryrefslogtreecommitdiff
path: root/buildstream/_scheduler/jobs/cachesizejob.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_scheduler/jobs/cachesizejob.py')
-rw-r--r--buildstream/_scheduler/jobs/cachesizejob.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/_scheduler/jobs/cachesizejob.py b/buildstream/_scheduler/jobs/cachesizejob.py
index d46fd4c16..6e4698af9 100644
--- a/buildstream/_scheduler/jobs/cachesizejob.py
+++ b/buildstream/_scheduler/jobs/cachesizejob.py
@@ -16,7 +16,7 @@
# Author:
# Tristan Daniƫl Maat <tristan.maat@codethink.co.uk>
#
-from .job import Job
+from .job import Job, JobStatus
class CacheSizeJob(Job):
@@ -30,8 +30,8 @@ class CacheSizeJob(Job):
def child_process(self):
return self._artifacts.compute_cache_size()
- def parent_complete(self, success, result):
- if success:
+ def parent_complete(self, status, result):
+ if status == JobStatus.OK:
self._artifacts.set_cache_size(result)
if self._complete_cb: