Skip to content
mtwebit edited this page Feb 3, 2019 · 4 revisions

Tasker is a ProcessWire module to support executing long-running jobs (e.g. performing operations on thousands of pages).

Tasker supports developers

  • to run jobs in the background using cron or LazyCron
  • to gracefully handle memory and execution time limits
  • by providing a state-saving mechanism to store the task's progress

Its companion module Taskeradmin

  • provides a step-by-step execution method via async HTTP calls
  • allows to monitor the task's progress, helps to check log messages and task data
  • allows manual state transitions (starting, killing, stopping, resuming etc. tasks)

In order to use Tasker you need the following

  • implement a function that performs the long-running job
  • create a task to call the function
  • choose an execution method (scheduler): cron (preferred, tested), LazyCron (not really tested) or TaskerAdmin (tested)
Clone this wiki locally