예제 #1
0
    def test_submit_many_tasks(self):

        s = Submitter()
        s.guess_virtualenv()
        s.tasks = [partial(t, a) for t, a in zip(self.tasks, self.args)]
        s.StoreClass = self.STORE
        s.submit()
        time.sleep(15)
        for t, a in zip(self.tasks, self.args):
            t.validate(a)
예제 #2
0
    def test_submit_single_task(self):

        s = Submitter()
        s.guess_virtualenv()
        print(self.dir)
        ttt = TestTask(self.dir)
        s.tasks = [partial(ttt, 'foo')]
        s.StoreClass = self.STORE
        s.submit()
        time.sleep(15)
        ttt.validate('foo')
예제 #3
0
    def test_submit_many_array(self):

        s = Submitter()
        s.use_pbs_array=True
        s.array_tasks_to_run_in_paralel=5
        s.guess_virtualenv()
        s.tasks = [partial(t, a) for t, a in zip(self.tasks, self.args)]
        s.StoreClass = self.STORE
        s.submit()
        time.sleep(15)
        for t, a in zip(self.tasks, self.args):
            t.validate(a)