Skip to content

JobInterface ​

Type
Interface
Namespace
craft\queue
Extends
yii\queue\JobInterface
Implemented by
craft\queue\BaseJob, craft\queue\jobs\Announcement, craft\queue\jobs\ApplyMatrixPropagationMethod, craft\queue\jobs\ApplyNewPropagationMethod, craft\queue\jobs\ConvertEntryRevisions, craft\queue\jobs\DeleteStaleTemplateCaches, craft\queue\jobs\FindAndReplace, craft\queue\jobs\GeneratePendingTransforms, craft\queue\jobs\LocalizeRelations, craft\queue\jobs\PropagateElements, craft\queue\jobs\PruneRevisions, craft\queue\jobs\ResaveElements, craft\queue\jobs\UpdateElementSlugsAndUris, craft\queue\jobs\UpdateSearchIndex
Since
3.0.0

JobInterface defines the common interface to be implemented by job classes.

A class implementing this interface should also use \craft\queue\SavableComponentTrait and \craft\queue\JobTrait.

View source

Public Methods ​

MethodDescription
execute()
getDescription()Returns the description that should be used for the job.

execute() ​

View source

Arguments ​

getDescription() ​

Returns the description that should be used for the job.

View source

Returns ​

string, null