Пример #1
0
# -*- coding: utf-8 -*-


from __future__ import print_function
from quokka import create_celery_app

celery = create_celery_app()


@celery.task
def send_manager_added_email(*recipients):
    print('sending manager added email...')  # noqa


@celery.task
def send_manager_removed_email(*recipients):
    print('sending manager removed email...')  # noqa
Пример #2
0
# -*- coding: utf-8 -*-
"""
    overholt.tasks
    ~~~~~~~~~~~~~~

    overholt tasks module
"""

from quokka import create_celery_app

celery = create_celery_app()


@celery.task
def send_manager_added_email(*recipients):
    print 'sending manager added email...'


@celery.task
def send_manager_removed_email(*recipients):
    print 'sending manager removed email...'