cic-internal-integration/apps/cic-eth/cic_eth/admin/debug.py

13 lines
188 B
Python
Raw Normal View History

2021-02-01 18:12:51 +01:00
import datetime
import celery
celery_app = celery.current_app
@celery_app.task()
def out_tmp(tag, txt):
f = open('/tmp/err.{}.txt'.format(tag), "w")
f.write(txt)
f.close()