mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 08:02:11 +00:00
14 lines
251 B
Python
14 lines
251 B
Python
import os
|
|
import dramatiq
|
|
|
|
from utils.shortcuts import DRAMATIQ_WORKER_ARGS
|
|
|
|
|
|
@dramatiq.actor(**DRAMATIQ_WORKER_ARGS())
|
|
def delete_files(*args):
|
|
for item in args:
|
|
try:
|
|
os.remove(item)
|
|
except Exception:
|
|
pass
|