Exemplo n.º 1
0
 def send_job(tup):
     # Schedule writing job request for when one of the process
     # inqueues are writable.
     body = dumps(tup, protocol=protocol)
     body_size = len(body)
     header = pack('>I', body_size)
     # index 1,0 is the job ID.
     job = get_job(tup[1][0])
     job._payload = buf_t(header), buf_t(body), body_size
     put_message(job)
Exemplo n.º 2
0
 def send_job(tup):
     # Schedule writing job request for when one of the process
     # inqueues are writable.
     body = dumps(tup, protocol=protocol)
     body_size = len(body)
     header = pack(">I", body_size)
     # index 1,0 is the job ID.
     job = get_job(tup[1][0])
     job._payload = buf_t(header), buf_t(body), body_size
     put_message(job)
Exemplo n.º 3
0
 def send_job(tup):
     print 'sending job'
     import traceback
     stack = traceback.extract_stack()
     for s in ['%s:%s' % (s[0],s[1]) for s in stack]:
         print s
     # Schedule writing job request for when one of the process
     # inqueues are writable.
     body = dumps(tup, protocol=protocol)
     body_size = len(body)
     header = pack('>I', body_size)
     # index 1,0 is the job ID.
     job = get_job(tup[1][0])
     job._payload = buf_t(header), buf_t(body), body_size
     put_message(job)