When not using file_per_task, make sure we don't prematurely close the perf files (#56477)

* When not using file_per_task, make sure we don't prematurely close the perf files

* add changelog fragment
This commit is contained in:
Matt Martz 2019-05-16 15:38:36 -05:00 committed by GitHub
parent 98246f6032
commit 867e357eb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 8 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- cgroup_perf_recap - When not using file_per_task, make sure we don't prematurely close the perf files

View file

@ -394,6 +394,7 @@ class CallbackModule(CallbackBase):
def _profile(self, obj=None):
prev_task = None
results = dict.fromkeys(self._features)
if not obj or self._file_per_task:
for dummy, f in self._files.items():
if f is None:
continue
@ -420,7 +421,7 @@ class CallbackModule(CallbackBase):
pass
if obj is not None:
if self._file_per_task:
if self._file_per_task or self._counter == 0:
self._open_files(task_uuid=obj._uuid)
for feature in self._features: