Browse Source

apply sleep on timeout value provided only

main
ghost 1 year ago
parent
commit
33d657cb72
  1. 6
      src/cli/document/crawl.php

6
src/cli/document/crawl.php

@ -581,10 +581,13 @@ foreach($search->get() as $document)
); );
// Delay next attempt // Delay next attempt
if ($ftp->connection->attempts->delay)
{
sleep( sleep(
$ftp->connection->attempts->delay $ftp->connection->attempts->delay
); );
} }
}
} while ($connection === false); } while ($connection === false);
} }
@ -605,7 +608,10 @@ foreach($search->get() as $document)
} }
// Crawl queue delay // Crawl queue delay
if ($config->cli->document->crawl->queue->limit)
{
sleep( sleep(
$config->cli->document->crawl->queue->limit $config->cli->document->crawl->queue->limit
); );
}
} }
Loading…
Cancel
Save