This commit is contained in:
Egor Matveev 2022-03-27 23:56:16 +03:00
parent 2de63c8b3f
commit 2cc793a752
2 changed files with 6 additions and 6 deletions

View File

@ -172,12 +172,12 @@ class BaseTester:
self.solution.result = "TE"
raise e
self.solution.save()
# self.call(f"docker rm --force solution_{self.solution.id}")
# self.call(f"docker rm --force solution_{self.solution.id}_checker")
self.call(f"docker rm --force solution_{self.solution.id}")
self.call(f"docker rm --force solution_{self.solution.id}_checker")
for file in self.dockerfiles:
add_name = file.filename[11:]
# self.call(f"docker rm --force solution_container_{self.solution.id}_{add_name}")
# self.call(f"docker image rm solution_image_{self.solution.id}_{add_name}")
self.call(f"docker rm --force solution_container_{self.solution.id}_{add_name}")
self.call(f"docker image rm solution_image_{self.solution.id}_{add_name}")
self.solution.user.userinfo.refresh_from_db()
notify(
self.solution.user,

View File

@ -22,5 +22,5 @@ class Command(MessagingSupport):
solution.save()
finally:
path = join("solutions", str(id))
# if exists(path):
# rmtree(path)
if exists(path):
rmtree(path)