mirror of
https://github.com/clearml/clearml
synced 2025-02-12 15:45:25 +00:00
Fix Task.get_reported_scalars(): do not raise exception, set max_request to 1, retrieve all scalars by default
This commit is contained in:
parent
4bfd614367
commit
00ccadf591
@ -1114,8 +1114,13 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
|||||||
|
|
||||||
# send request
|
# send request
|
||||||
res = self.send(
|
res = self.send(
|
||||||
events.ScalarMetricsIterHistogramRequest(task=self.id, key=x_axis, samples=max(0, max_samples))
|
events.ScalarMetricsIterHistogramRequest(
|
||||||
|
task=self.id, key=x_axis, samples=max(1, max_samples) if max_samples else None),
|
||||||
|
raise_on_errors=False,
|
||||||
|
ignore_errors=True,
|
||||||
)
|
)
|
||||||
|
if not res:
|
||||||
|
return {}
|
||||||
response = res.wait()
|
response = res.wait()
|
||||||
if not response.ok() or not response.response_data:
|
if not response.ok() or not response.response_data:
|
||||||
return {}
|
return {}
|
||||||
|
Loading…
Reference in New Issue
Block a user