Private
Public Access
1
0

prolonged task

This commit is contained in:
Sander Roosendaal
2017-05-10 11:12:39 +02:00
parent 1b76ac8e8a
commit b8d9febc91
4 changed files with 119 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ from async_messages import message_user,messages
@app.task
def addcomment(userid,id):
time.sleep(5)
time.sleep(45)
w = Workout.objects.get(id=id)
w.notes += '\n the task has run'
w.save()