Delay between requests even when user is not found.
This commit is contained in:
parent
2d8bd6f6fc
commit
b5b10b3072
|
@ -177,6 +177,8 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
|
||||||
{
|
{
|
||||||
// Updating users subscribers
|
// Updating users subscribers
|
||||||
foreach ($users as $user) {
|
foreach ($users as $user) {
|
||||||
|
usleep($this->apiDelay);
|
||||||
|
|
||||||
$this->logger->info('Processing @'.$user->getLogin());
|
$this->logger->info('Processing @'.$user->getLogin());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -215,8 +217,6 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->progress->advance();
|
$this->progress->advance();
|
||||||
|
|
||||||
usleep($this->apiDelay);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue