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.

...

PauseWorker

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

...

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

  - Create a class implementing PauseWorkerProcessorInterface

...