with open(args.config_file) as f:
cfg = json.load(f)
+bunch_idx = 1
bunches = []
for bunch_cfg in cfg['bunches']:
- bunches.append( Bunch(bunch_cfg) )
+ bunches.append( Bunch(bunch_idx, cfg['cache_dir'], bunch_cfg) )
+ bunch_idx += 1
for bunch in bunches:
bunch.start()