예제 #1
0
__author__ = 'harsimran'
import celery

from base import Notification
from framework.SQL.sql import update_data


notification= Notification(' notification description','kenya','wheat','cereal' )
result2 = update_data.apply_async(args=[notification],queue='notifications',routing_key='publish.notification')

# type(result2)
# update_data('dsfghj','{\"dfdhua\",\"fdsghua\"}')
예제 #2
0
파일: test.py 프로젝트: dbanka/messaging
__author__ = 'harsimran'
import celery

from framework.email.email_tasks import send_email
from framework.SQL.sql import update_data

result2 = update_data.apply_async(args=['new notification','{\"wheat\",\"cereal\"}'],queue='videos',routing_key='media.video')

예제 #3
0
__author__ = 'harsimran'
import celery

from base import Notification
from framework.SQL.sql import update_data

notification = Notification(' notification description', 'kenya', 'wheat',
                            'cereal')
result2 = update_data.apply_async(args=[notification],
                                  queue='notifications',
                                  routing_key='publish.notification')

# type(result2)
# update_data('dsfghj','{\"dfdhua\",\"fdsghua\"}')