Actually delete the work dir
This commit is contained in:
parent
536ec3871c
commit
273312b890
|
@ -5,6 +5,7 @@ import os
|
||||||
from celery import Celery
|
from celery import Celery
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from flask import Flask, abort, request, Response, send_file
|
from flask import Flask, abort, request, Response, send_file
|
||||||
|
from shutil import rmtree
|
||||||
import pypandoc
|
import pypandoc
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
@ -61,4 +62,4 @@ def convert():
|
||||||
@celery.task()
|
@celery.task()
|
||||||
def clean_up(path):
|
def clean_up(path):
|
||||||
app.logger.info('Deleting work dir %s', path)
|
app.logger.info('Deleting work dir %s', path)
|
||||||
pass
|
rmtree(path)
|
||||||
|
|
Loading…
Reference in New Issue