Beispiel #1
0
  def submit(self, target, args = (), kwargs = {}):

    jobid = identifier()
    self.waiting_jobs.append( ( jobid, target, args, kwargs ) )
    self.poll()
    return jobid
Beispiel #2
0
    def submit(self, target, args=(), kwargs={}):

        jobid = identifier()
        self.outqueue.put((jobid, target, args, kwargs))
        self.running_jobs.add(jobid)
        return jobid
Beispiel #3
0
  def submit(self, target, args = (), kwargs = {}):

    jobid = identifier()
    self.outqueue.append( ( jobid, target, args, kwargs ) )
    return jobid
Beispiel #4
0
    def submit(self, target, args=(), kwargs={}):

        jobid = identifier()
        self.outqueue.append((jobid, target, args, kwargs))
        return jobid
Beispiel #5
0
  def submit(self, target, args = (), kwargs = {}):

    jobid = identifier()
    self.outqueue.put( ( jobid, target, args, kwargs ) )
    self.running_jobs.add( jobid )
    return jobid