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