Exemplo n.º 1
0
 def send_users_to_queue(self, accountlist):
     """
     OUTDATED- This function converts the accountlist to a string that can be sent over a queue.
     :param accountlist:
     :type accountlist:
     :return:
     :rtype:
     """
     listtostring = accountlist
     queue = Queues()
     queue.create_queue("createuserq", str(listtostring))
Exemplo n.º 2
0
 def send_users_to_queue(self, accountlist):
     """
     OUTDATED- This function converts the accountlist to a string that can be sent over a queue.
     :param accountlist:
     :type accountlist:
     :return:
     :rtype:
     """
     listtostring = accountlist
     queue = Queues()
     queue.create_queue("createuserq", str(listtostring))
Exemplo n.º 3
0
 def create_report_queue(self, queuename, content):
     """
     Create the report queue
     :param queuename:
     :type queuename:
     :param content:
     :type content:
     :return:
     :rtype:
     """
     queue = Queues()
     queue.create_queue(queuename, content)
Exemplo n.º 4
0
 def create_report_queue(self, queuename, content):
     """
     Create the report queue
     :param queuename:
     :type queuename:
     :param content:
     :type content:
     :return:
     :rtype:
     """
     queue = Queues()
     queue.create_queue(queuename, content)
Exemplo n.º 5
0
 def create_work_queue(self, queuename, joblist):
     """
     Function to create a workqueue that is used to put jobs on
     :param queuename:
     :type String:
     :param joblist:
     :type list:
     :return:
     :rtype:
     """
     queue = Queues()
     for group, job in joblist.iteritems():
         for j in job:
             jobdict = {}
             jobdict.update({group: j})
             queue.create_queue(queuename, jobdict)
Exemplo n.º 6
0
 def create_work_queue(self, queuename, joblist):
     """
     Function to create a workqueue that is used to put jobs on
     :param queuename:
     :type String:
     :param joblist:
     :type list:
     :return:
     :rtype:
     """
     queue = Queues()
     for group, job in joblist.iteritems():
         for j in job:
             jobdict = {}
             jobdict.update({group: j})
             queue.create_queue(queuename, jobdict)