Child: [307a6e] (diff)

Download this file

MailTask.py    13 lines (9 with data), 284 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# -*- coding: utf-8 -*-
from celery.task import Task
from celery.registry import tasks
class MailTask(Task):
routing_key = 'forge.mail'
def run(self, **kwargs)
logger = self.get_logger(**kwargs)
logger.debug("Fetched mail message")
tasks.register(MailTask)