Example #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\"}')
Example #2
0
__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')

Example #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\"}')