add crawl queue delay support

This commit is contained in:
ghost 2023-11-20 00:06:17 +02:00
parent 13cf61b42c
commit 01753b0557
2 changed files with 7 additions and 1 deletions

View File

@ -273,4 +273,9 @@ foreach($search->get() as $document)
} }
} }
} }
// Apply delay
sleep(
$config->cli->document->crawl->queue->limit
);
} }

View File

@ -19,7 +19,8 @@
{ {
"queue": "queue":
{ {
"limit":1 "limit":1,
"delay":1
}, },
"selector": "selector":
{ {