tasks.py 154 B

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