docker cleaner

This commit is contained in:
Egor Matveev
2022-05-07 12:25:10 +03:00
parent 0f38429ed9
commit bd8eef9325
3 changed files with 5 additions and 4 deletions

View File

@@ -109,7 +109,8 @@ class BaseTester:
def cleanup(self):
self.solution.save()
send_to_queue("cleaner", {"type": "container", "name": f"solution_{self.solution.id}"})
send_to_queue("cleaner", {"type": "container", "name": f"solution_{self.solution.id}_checker"})
if self.checker_code:
send_to_queue("cleaner", {"type": "container", "name": f"solution_{self.solution.id}_checker"})
for file in self.solution.task.dockerfiles:
add_name = file.filename[11:]
send_to_queue("cleaner", {"type": "container", "name": f"solution_container_{self.solution.id}_{add_name}"})