tasks.py 155 B

12345678
  1. from __future__ import absolute_import, unicode_literals
  2. from celery import task
  3. @task()
  4. def hello_world(to='world'):
  5. return 'Hello {0}'.format(to)