remove celery and use dramatiq
This commit is contained in:
@@ -234,7 +234,7 @@ class DownloadContestSubmissions(APIView):
|
||||
|
||||
exclude_admin = request.GET.get("exclude_admin") == "1"
|
||||
zip_path = self._dump_submissions(contest, exclude_admin)
|
||||
delete_files.apply_async((zip_path,), countdown=300)
|
||||
delete_files.send_with_options(args=(zip_path,), delay=300_000)
|
||||
resp = FileResponse(open(zip_path, "rb"))
|
||||
resp["Content-Type"] = "application/zip"
|
||||
resp["Content-Disposition"] = f"attachment;filename={os.path.basename(zip_path)}"
|
||||
|
||||
Reference in New Issue
Block a user