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
AOECrawler to the
TYPO3 message bus
and processed by a worker:
vendor/bin/typo3 messenger:consume crawler_high crawler crawler_low
See Running the worker for how to keep the worker running.
The queue table tx_ is kept: it holds the URLs to crawl and the
crawl results shown in the Crawler log.
Migration
- Run the database analyzer to remove the table
tx_and the columnscrawler_ process process_,id process_andid_ completed process_ofscheduled tx_.crawler_ queue - Replace all
crawler:cron-jobs and scheduler tasks withprocess Queue messenger:.consume crawler_ high crawler crawler_ low - Pending queue entries created before the upgrade have no message on the
message bus. Flush them with
vendor/and build the queue again.bin/ typo3 crawler: flush Queue pending
Removed functionality
- The command
crawler:. Useprocess Queue messenger:.consume crawler_ high crawler crawler_ low - The Process view of the backend module and the AJAX route
crawler_. Workers are managed outside of TYPO3, e.g. by systemd.process_ status - The table
tx_and the classescrawler_ process AOECrawler,Crawler AOECrawler,Domain Model Process AOECrawler,Domain Model Process Collection AOECrawler,Domain Repository Process Repository AOECrawler,Service Process Service AOECrawler,Service Backend Module Link Service AOECrawler,Process* AOECrawler,Helper Sleeper* AOECrawler,Hooks Process Clean Up Hook AOECrawler,Hooks Crawler Hook Interface AOECrawlerandUtility Hook Utility AOECrawler.Event Listener After Queue Item Added Event Listener - The unused classes
AOECrawler,Domain Model Configuration AOECrawler,Domain Model Queue AOECrawler,Value Crawl Action AOECrawlerandException Crawler Object Exception AOECrawler, and the deprecated methodException Time Stamp Exception Crawler, useController:: draw URLs_ PIfilter () Processinstead.Instruction Service:: is Allowed () - The hooks
$GLOBALSand['TYPO3_ CONF_ VARS'] ['EXTCONF'] ['crawler'] ['cli_ hooks'] $GLOBALS.['TYPO3_ CONF_ VARS'] ['EXTCONF'] ['crawler'] ['refresh_ hooks'] - The methods
CrawlerandController:: read Url () Crawler, as well as the propertyController:: read Url From Array () Crawler. Dispatch aController::$process ID AOECrawlerinstead.Queue Message Crawl Url Message - The extension settings
sleep,Time sleep,After Finish count,In ARun process,Limit process,Max Run Time purge,Queue Days processandDebug process. Use the options ofVerbose messenger:(consume --,limit --,time- limit --) and run several workers to process entries in parallel. Old processed entries are still removed bymemory- limit clean.Up Old Queue Entries
Changed functionality
- Priority Crawling is done with three transports,
crawler_,high crawlerandcrawler_, instead of sorting the queue. A worker must consume them in that order:low messenger:.consume crawler_ high crawler crawler_ low - The result of a crawl is stored by the message handler, after the event
AOECrawlerhas been dispatched. Listeners can still modify the stored fields withEvent After Queue Item Added Event set.Field Array () - 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 AOECrawler
instead of a crawler_ method, and no longer receive the
Crawler. Callbacks that are services get their dependencies by
constructor injection instead.
Migration
-
Implement
Queueand renameCallback Interface crawler_toexecute () execute:() -class MyCallback +final class MyCallback implements \AOE\Crawler\Queue\QueueCallbackInterface { - public function crawler_execute(array $parameters, CrawlerController $crawlerController) + public function execute(array $parameters): mixedCopied! - Add queue entries with
Queue, the replacement of the removedEntry Writer:: add Callback () Crawler.Controller:: add Queue Entry_ call Back ()
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
See Managing translations for details.
Missing or wrong translations can be fixed on Crowdin, they are part of the next language pack.