Upgrade 

Message bus instead of the Crawler process handling 

The Crawler no longer processes its queue with its own processes. Every URL added to the queue is dispatched as a AOECrawlerQueueMessageCrawlUrlMessage to the TYPO3 message bus and processed by a worker:

vendor/bin/typo3 messenger:consume crawler_high crawler crawler_low
Copied!

See Running the worker for how to keep the worker running.

The queue table tx_crawler_queue is kept: it holds the URLs to crawl and the crawl results shown in the Crawler log.

Migration 

  1. Run the database analyzer to remove the table tx_crawler_process and the columns process_id, process_id_completed and process_scheduled of tx_crawler_queue.
  2. Replace all crawler:processQueue cron-jobs and scheduler tasks with messenger:consume crawler_high crawler crawler_low.
  3. Pending queue entries created before the upgrade have no message on the message bus. Flush them with vendor/bin/typo3 crawler:flushQueue pending and build the queue again.

Removed functionality 

  • The command crawler:processQueue. Use messenger:consume crawler_high crawler crawler_low.
  • The Process view of the backend module and the AJAX route crawler_process_status. Workers are managed outside of TYPO3, e.g. by systemd.
  • The table tx_crawler_process and the classes AOECrawlerCrawler, AOECrawlerDomainModelProcess, AOECrawlerDomainModelProcessCollection, AOECrawlerDomainRepositoryProcessRepository, AOECrawlerServiceProcessService, AOECrawlerServiceBackendModuleLinkService, AOECrawlerProcess*, AOECrawlerHelperSleeper*, AOECrawlerHooksProcessCleanUpHook, AOECrawlerHooksCrawlerHookInterface, AOECrawlerUtilityHookUtility and AOECrawlerEventListenerAfterQueueItemAddedEventListener.
  • The unused classes AOECrawlerDomainModelConfiguration, AOECrawlerDomainModelQueue, AOECrawlerValueCrawlAction, AOECrawlerExceptionCrawlerObjectException and AOECrawlerExceptionTimeStampException, and the deprecated method CrawlerController::drawURLs_PIfilter(), use ProcessInstructionService::isAllowed() instead.
  • The hooks $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['cli_hooks'] and $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['refresh_hooks'].
  • The methods CrawlerController::readUrl() and CrawlerController::readUrlFromArray(), as well as the property CrawlerController::$processID. Dispatch a AOECrawlerQueueMessageCrawlUrlMessage instead.
  • The extension settings sleepTime, sleepAfterFinish, countInARun, processLimit, processMaxRunTime, purgeQueueDays, processDebug and processVerbose. Use the options of messenger:consume (--limit, --time-limit, --memory-limit) and run several workers to process entries in parallel. Old processed entries are still removed by cleanUpOldQueueEntries.

Changed functionality 

  • Priority Crawling is done with three transports, crawler_high, crawler and crawler_low, instead of sorting the queue. A worker must consume them in that order: messenger:consume crawler_high crawler crawler_low.
  • The result of a crawl is stored by the message handler, after the event AOECrawlerEventAfterQueueItemAddedEvent has been dispatched. Listeners can still modify the stored fields with setFieldArray().
  • Re-crawling an entry from the Crawler log dispatches a message, the result is visible once the worker has processed it.

Queue callbacks implement an interface 

Callbacks in the queue implement AOECrawlerQueueQueueCallbackInterface instead of a crawler_execute() method, and no longer receive the CrawlerController. Callbacks that are services get their dependencies by constructor injection instead.

Migration 

  1. Implement QueueCallbackInterface and rename crawler_execute() to execute():

    -class MyCallback
    +final class MyCallback implements \AOE\Crawler\Queue\QueueCallbackInterface
     {
    -    public function crawler_execute(array $parameters, CrawlerController $crawlerController)
    +    public function execute(array $parameters): mixed
    Copied!
  2. Add queue entries with QueueEntryWriter::addCallback(), the replacement of the removed CrawlerController::addQueueEntry_callBack().

See Queue callbacks.

Translations are delivered as language packs 

The extension no longer ships translated XLIFF files, only the English labels. The translations are maintained on Crowdin and delivered by the TYPO3 translation server as language packs, like the translations of the TYPO3 Core.

Without language packs, the backend module and the Crawler labels are shown in English. Fetch or update the language packs after installing or updating the extension, either in the backend module System > Maintenance > Manage Language Packs, or on the command line:

vendor/bin/typo3 language:update
Copied!

See Managing translations for details.

Missing or wrong translations can be fixed on Crowdin, they are part of the next language pack.