def submit(self, target, args = (), kwargs = {}): jobid = identifier() self.waiting_jobs.append( ( jobid, target, args, kwargs ) ) self.poll() return jobid
def submit(self, target, args=(), kwargs={}): jobid = identifier() self.outqueue.put((jobid, target, args, kwargs)) self.running_jobs.add(jobid) return jobid
def submit(self, target, args = (), kwargs = {}): jobid = identifier() self.outqueue.append( ( jobid, target, args, kwargs ) ) return jobid
def submit(self, target, args=(), kwargs={}): jobid = identifier() self.outqueue.append((jobid, target, args, kwargs)) return jobid
def submit(self, target, args = (), kwargs = {}): jobid = identifier() self.outqueue.put( ( jobid, target, args, kwargs ) ) self.running_jobs.add( jobid ) return jobid