Exemplo n.º 1
0
 def generateUrgentPipeline(dax_filepath, wf_name, wf_start_id, task_postfix_id, deadline):
     parser = DAXParser()
     random = Random()
     pipelineSize = 1##random.randint(Utility.MIN_PIPELINE_SIZE,Utility.MAX_PIPELINE_SIZE)
     wfs = [parser.parseXml(dax_filepath, wf_start_id + str(i), task_postfix_id + str(i), wf_name) for i in
            range(0, pipelineSize)]
     for wf in wfs:
         wf.deadline = deadline
     return wfs
Exemplo n.º 2
0
 def readWorkflow(dax_filepath, wf_name, wf_start_id="00", task_postfix_id="00", deadline=1000, is_head=True):
     parser = DAXParser()
     wf = parser.parseXml(dax_filepath, wf_start_id + "0", task_postfix_id + "0", wf_name, is_head=is_head)
     wf.deadline = deadline
     return wf