You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:30:12 UTC
[buildstream] 14/32: cleanupjob.py: Make complete_cb optional
This is an automated email from the ASF dual-hosted git repository.
root pushed a commit to branch testing/local-cache-expiry
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 723a6ca8f1fd064b9993448f2ae4b93305daaf38
Author: Tristan Maat <tm...@tlater.net>
AuthorDate: Wed Jul 11 10:24:38 2018 +0100
cleanupjob.py: Make complete_cb optional
---
buildstream/_scheduler/jobs/cleanupjob.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/buildstream/_scheduler/jobs/cleanupjob.py b/buildstream/_scheduler/jobs/cleanupjob.py
index 3ae635a..2de3680 100644
--- a/buildstream/_scheduler/jobs/cleanupjob.py
+++ b/buildstream/_scheduler/jobs/cleanupjob.py
@@ -35,7 +35,8 @@ class CleanupJob(Job):
def _parent_complete(self, success, result):
self._cache._set_cache_size(result)
- self._complete_cb()
+ if self._complete_cb:
+ self._complete_cb()
@contextmanager
def _child_logging_enabled(self, logfile):