Files
Sipro-Stocks/background/tasks.py
2024-07-01 06:01:50 +03:00

10 lines
170 B
Python

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}))