diff options
author | Jürg Billeter <j@bitron.ch> | 2019-01-28 22:36:22 +0000 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-01-28 22:36:22 +0000 |
commit | 2fcb4491312d6f57a269449c1a50d3f18bf4cb19 (patch) | |
tree | d03ba6acc95cb351829db14f11b1e233de43fc22 | |
parent | 80b36d0c5cf89eb9130642c255d18cbdf296cef0 (diff) | |
parent | a1ab48daf7b572bf857b115898db2d947552a155 (diff) | |
download | buildstream-2fcb4491312d6f57a269449c1a50d3f18bf4cb19.tar.gz |
Merge branch 'valentindavid/crash_in_scheduler_857' into 'master'
Fix crash when spawned job completes very fast
Closes #857
See merge request BuildStream/buildstream!1095
-rw-r--r-- | buildstream/_scheduler/scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_scheduler/scheduler.py b/buildstream/_scheduler/scheduler.py index f35a85b23..176900b33 100644 --- a/buildstream/_scheduler/scheduler.py +++ b/buildstream/_scheduler/scheduler.py @@ -314,10 +314,10 @@ class Scheduler(): # job (Job): The job to spawn # def _spawn_job(self, job): - job.spawn() self._active_jobs.append(job) if self._job_start_callback: self._job_start_callback(job) + job.spawn() # Callback for the cache size job def _cache_size_job_complete(self, status, cache_size): |