diff --git a/tasks.py b/tasks.py new file mode 100644 index 0000000..7bdf9d1 --- /dev/null +++ b/tasks.py @@ -0,0 +1,7 @@ +from celery import shared_task + +@shared_task +def delete_temp_file(file_path): + """Celery task to delete a temporary file.""" + if os.path.exists(file_path): + os.remove(file_path)