Add better debug logging when task session creation fails

This commit is contained in:
clearml 2025-06-22 22:37:59 +03:00
parent 553c72e06a
commit 8d8dc4e396

View File

@ -1391,6 +1391,10 @@ class Worker(ServiceCommandSection):
headers=headers
)
if not (result.ok() and result.response):
try:
self.log.debug("Failed creating task session: %s", result.response)
except:
pass
return
new_session = copy(session)
new_session.config = deepcopy(session.config)