Skip to content

Commit

Permalink
chore: remove container upon completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed May 2, 2024
1 parent 84d018b commit 33c8631
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/api/tasks/extra_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def task_extra_check_start(extra_check_result: ExtraCheckResult):
logs = ""
try:
logs = cast(str, container.logs(stream=False, timestamps=False))
container.remove(v=False)
except docker.errors.APIError:
logs = "Could not retrieve logs"
finally:
Expand Down

0 comments on commit 33c8631

Please sign in to comment.