mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
added general exception for edge cases
removed obsolete comment
This commit is contained in:
parent
5abe0791cb
commit
6cdc019fbe
@ -86,13 +86,19 @@ while True:
|
||||
):
|
||||
logging.info(f'successfully deleted task with id {task.id}')
|
||||
else:
|
||||
logging.warning(f'could not delete task with id {task.id}, task.delete() returned false')
|
||||
logging.warning(f'could not delete task with id {task.id}')
|
||||
except ValueError as e:
|
||||
logging.warning(
|
||||
"Could not find Task ID={}, {}".format(
|
||||
task.id, e.message if hasattr(e, "message") else e
|
||||
)
|
||||
)
|
||||
except Exception as e:
|
||||
logging.warning(
|
||||
"Error while deleting Task ID={}, {}".format(
|
||||
task.id, e.message if hasattr(e, "message") else e
|
||||
)
|
||||
)
|
||||
continue
|
||||
|
||||
# sleep until the next day
|
||||
|
Loading…
Reference in New Issue
Block a user