- if source.trigger.is_triggering():
- logging.info("Got source trigger for bunch %s.", self._id)
- source.trigger.reset()
- source.migrator.migrate()
- if source.cleanup:
- source.migrator.cleanup()
+ if src.trigger.is_triggering():
+ logging.info("Got trigger for source #%d.%d.", self._idx, src.idx)
+ before = time.time()
+ src.trigger.reset()
+ src.migrator.migrate(src.cleanup)
+ if src.cleanup:
+ src.migrator.cleanup()
+ logging.info("Migration took %.1fs for source #%d.%d.",
+ time.time() - before, self._idx, src.idx)