UpdateSubscriptionsCommand advance progressbar before processing any operations with user.

This commit is contained in:
Alexey Skobkin 2017-01-14 05:07:07 +03:00
parent b5b10b3072
commit 80a7cc47be

View file

@ -179,6 +179,8 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
foreach ($users as $user) {
usleep($this->apiDelay);
$this->progress->advance();
$this->logger->info('Processing @'.$user->getLogin());
try {
@ -215,8 +217,6 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
]
);
}
$this->progress->advance();
}
}