Files
notifications-api/run_celery.py
Martyn Inglis fb41acdac9 Celery tests
2016-02-09 13:31:45 +00:00

8 lines
226 B
Python

#!/usr/bin/env python
import os
from app import celery, create_app
from app.celery.tasks import refresh_services
application = create_app(os.getenv('NOTIFY_API_ENVIRONMENT') or 'development')
application.app_context().push()