Commit 4f2232b6 authored by delanoe's avatar delanoe

[FEAT] cProfile for profiling the workflow. Need some fixes.

parent 36cc1540
......@@ -2,7 +2,7 @@
from celery import shared_task
from node import models
import cProfile
#@app.task(bind=True)
@shared_task
def debug_task(request):
......@@ -37,6 +37,7 @@ def apply_workflow(corpus_id):
corpus = session.query(Node).filter(Node.id==corpus_id).first()
update_processing(corpus, 1)
#cProfile.runctx('parse_resources(corpus)', global,locals)
parse_resources(corpus)
update_processing(corpus, 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment