tasks.py 266 B

1234567891011
  1. """Helper tasks for integration tests."""
  2. from __future__ import absolute_import, unicode_literals
  3. from celery import shared_task
  4. @shared_task(name='celery.ping')
  5. def ping():
  6. # type: () -> str
  7. """Simple task that just returns 'pong'."""
  8. return 'pong'