Skip to content

Commit

Permalink
Merge pull request #796 from opengisch/remove_tempdir
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus authored Oct 25, 2023
2 parents 4a530d6 + 47c2862 commit 29ccb1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-app/worker_wrapper/wrapper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
import logging
import os
import shutil
import sys
import tempfile
import traceback
Expand Down Expand Up @@ -223,6 +224,8 @@ def run(self):

self.after_docker_run()

shutil.rmtree(str(self.shared_tempdir), ignore_errors=True)

self.job.finished_at = timezone.now()
self.job.status = Job.Status.FINISHED
self.job.save(update_fields=["status", "finished_at"])
Expand Down

0 comments on commit 29ccb1d

Please sign in to comment.