Skip to content

Commit a05fa2b

Browse files
committed
time processing immitation added
1 parent 5b681a7 commit a05fa2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

file_loader_and_processor/main/tasks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import time
2+
13
from celery import shared_task
24

35
from .models import File
@@ -8,6 +10,9 @@ def task_execute(job_params):
810

911
file = File.objects.get(pk=job_params["db_id"])
1012

13+
# file processing immitation
14+
time.sleep(10)
15+
1116
file.processed = True
1217

1318
file.save()

0 commit comments

Comments
 (0)