cic-stack/apps/cic-ussd/cic_ussd/tasks/foo.py

12 lines
211 B
Python
Raw Normal View History

2021-02-06 16:13:47 +01:00
# third-party imports
import celery
import logging
celery_app = celery.current_app
logg = logging.getLogger()
@celery_app.task()
def log_it_plz(whatever):
logg.info('logged it plz: {}'.format(whatever))