Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The basic idea is, that each one process mostly runs completely independent (kind of an own thread) from the others. Such a process is called a "worker" in translate5. The workers can be called directly by a php-class (then it does not run as as an own process, but as part of the calling php-class) or they can be queued in the DB-table Zf_worker.


PauseImportWorker

The worker was designed to pause another worker until certain conditions are met. 

If you need to wait until something is happened or finished before starting a particular worker do next:

  - Create a new worker class extending  MittagQI\Translate5\Import\PauseImportWorker and make it to be a dependency of the worker that you want to pause

  - Create a class implementing PauseWorkerProcessorInterface

  - Add your just created PauseWorker to be queued with a worker that you want to pause

For more information about the implementation take a look PauseMatchAnalysisWorker


The queue and load balancing

...