mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-22 09:29:43 +00:00
Link worker greenlets to parent, so we abort if they have an unhandled exception.
This commit is contained in:
parent
9ecaf63fbe
commit
1eb38e09e4
1 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ def main():
|
|||
print "Spawning {r} readers and {w} writers...".format(r=options.num_readers, w=options.num_writers)
|
||||
group = gevent.pool.Group()
|
||||
for x in xrange(options.num_writers):
|
||||
group.spawn(
|
||||
group.spawn_link_exception(
|
||||
writer,
|
||||
bucket=bucket,
|
||||
name=x,
|
||||
|
@ -129,7 +129,7 @@ def main():
|
|||
file_name_seed=r,
|
||||
)
|
||||
for x in xrange(options.num_readers):
|
||||
group.spawn(
|
||||
group.spawn_link_exception(
|
||||
reader,
|
||||
bucket=bucket,
|
||||
name=x,
|
||||
|
|
Loading…
Reference in a new issue