You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
476 B

import time
print "--SELFTEST-- loading test"
us = [ '127.0.0.1#P1', '127.0.0.1#P2' ]
def payload1():
print "--STEPTEST-- payload1 start"
b = job.barrier('127.0.0.1#P2', 'here', 45)
b.rendezvous(*us)
print "--STEPTEST-- payload1 complete"
def payload2():
print "--STEPTEST-- payload2 start"
time.sleep(5)
b = job.barrier('127.0.0.1#P1', 'here', 40)
b.rendezvous(*us)
time.sleep(1)
print "--STEPTEST-- payload2 complete"
job.parallel([payload1], [payload2])