Log max concurrency when starting/finishing experiments

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2024-07-31 10:50:31 -04:00
1 parent 7e62dc64dc
commit f1c153f39f
2 files changed
+4

No files matched your search

@@ -70,6 +70,8 @@ public class FinishPushNotificationExperimentCommand<T> extends AbstractCommandW
final int maxConcurrency = namespace.getInt(MAX_CONCURRENCY_ARGUMENT);
log.info("Finishing \"{}\" with max concurrency: {}", experiment.getExperimentName(), maxConcurrency);
final AccountsManager accountsManager = commandDependencies.accountsManager();
final PushNotificationExperimentSamples pushNotificationExperimentSamples = commandDependencies.pushNotificationExperimentSamples();
@@ -83,6 +83,8 @@ public class StartPushNotificationExperimentCommand<T> extends AbstractSinglePas
final PushNotificationExperimentSamples pushNotificationExperimentSamples =
getCommandDependencies().pushNotificationExperimentSamples();
log.info("Starting \"{}\" with max concurrency: {}", experiment.getExperimentName(), maxConcurrency);
accounts
.flatMap(account -> Flux.fromIterable(account.getDevices()).map(device -> Tuples.of(account, device)))
.doOnNext(ignored -> DEVICE_INSPECTED_COUNTER.increment())