mirror of
https://github.com/clearml/clearml
synced 2025-02-07 21:33:25 +00:00
Fix unused scroll is not cleared in Task.get_reported_plots()
This commit is contained in:
parent
95785e7637
commit
e3a3367c2f
@ -1711,14 +1711,21 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
||||
"""
|
||||
# send request
|
||||
res = self.send(
|
||||
events.GetTaskPlotsRequest(task=self.id, iters=max_iterations or 1),
|
||||
events.GetTaskPlotsRequest(
|
||||
task=self.id, iters=max_iterations or 1,
|
||||
_allow_extra_fields_=True, no_scroll=True
|
||||
),
|
||||
raise_on_errors=False,
|
||||
ignore_errors=True,
|
||||
)
|
||||
if not res:
|
||||
return []
|
||||
response = res.wait()
|
||||
if not response.ok() or not response.response_data:
|
||||
|
||||
if not response.ok():
|
||||
return []
|
||||
|
||||
if not response.response_data:
|
||||
return []
|
||||
|
||||
return response.response_data.get('plots', [])
|
||||
|
Loading…
Reference in New Issue
Block a user