123
This commit is contained in:
9
background/tasks.py
Normal file
9
background/tasks.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import json
|
||||
|
||||
from background import celery
|
||||
|
||||
|
||||
@celery.task(name='test')
|
||||
def test_task():
|
||||
with open('test.json', 'a') as tf:
|
||||
tf.write(json.dumps({'ok': True}))
|
||||
Reference in New Issue
Block a user