SilverStripe\FullTextSearch\Search\Processors\SearchUpdateCommitJobProcessor
Synopsis
class SearchUpdateCommitJobProcessor
implements
QueuedJob
{
- // members
- private static string $commit_queue = QueuedJob::QUEUED;
- protected array $indexes = ;
- protected boolean $skipped = false;
- protected array $completed = ;
- protected array $messages = ;
- public static array $dirty_indexes = ;
- private static integer $cooldown = 300;
- public static boolean $has_run = false;
- // methods
- public static int queue()
- public void getJobType()
- public void getSignature()
- public void getTitle()
- public array getAllIndexes()
- public void jobFinished()
- public void prepareForRestart()
- public void afterComplete()
- protected void discardJob()
- public void process()
- protected void commitIndex()
- public void setup()
- public void getJobData()
- public void setJobData()
- public void addMessage()
- public void getMessages()
Hierarchy
Implements
- Symbiote\QueuedJobs\Services\QueuedJob
Members
private
- $commit_queue
—
string
The QueuedJob queue to use when processing commits - $cooldown
—
int
If solrindex::commit has already been performed, but additional commits are necessary, how long do we wait before attempting to touch the index again?
protected
- $completed
—
array
List of completed indexes - $indexes
—
array
List of indexes to commit - $messages
—
array
List of messages - $skipped
—
boolean
True if this job is skipped to be be re-scheduled in the future
public
- $dirty_indexes
—
array
List of dirty indexes to be committed - $has_run
—
boolean
True if any commits have been executed this request. If so, any attempts to run subsequent commits should be delayed until next queuedjob to prevent solr reaching maxWarmingSearchers
Methods
protected
- commitIndex() — Commits a specific index
- discardJob() — Abort this job, potentially rescheduling a replacement if there is still work to do
public
- addMessage()
- afterComplete()
- getAllIndexes() — Get the list of index names we should process
- getJobData()
- getJobType()
- getMessages()
- getSignature()
- getTitle()
- jobFinished()
- prepareForRestart()
- process()
- queue() — This method is invoked once indexes with dirty ids have been updapted and a commit is necessary
- setJobData()
- setup()