Fix string format

This commit is contained in:
allegroai 2024-08-27 22:55:49 +03:00
parent 2ff9985db7
commit e63fd31420

View File

@ -3321,7 +3321,7 @@ class Worker(ServiceCommandSection):
)
else:
self.log("Task failure: setting status to 'failed'" + rank_text)
self.send_logs(task_id, ["Process failed, exit code {}"+rank_text.format(exit_code)], session=session)
self.send_logs(task_id, ["Process failed, exit code {}".format(exit_code) + rank_text], session=session)
if not rank:
session.send_api(
tasks_api.FailedRequest(