Fix Task.wait_for_status() to reload after it ends

This commit is contained in:
allegroai 2020-09-01 17:46:24 +03:00
parent d148fe8042
commit 99a8724bec

View File

@ -1600,6 +1600,9 @@ class Task(_Task):
if raise_on_status and self.status in raise_on_status:
raise RuntimeError("Task {} has status: {}.".format(self.task_id, self.status))
# make sure we have the Task object
self.reload()
def export_task(self):
# type: () -> dict
"""