Page MenuHomeGitPull.it
Diviner Tech Docs PhabricatorScheduleTaskTriggerAction

final class PhabricatorScheduleTaskTriggerAction
Phorge Technical Documentation (Daemons)

Trigger action which queues a task.

Most triggers should take this action: triggers need to execute as quickly as possible, and should generally queue tasks instead of doing any real work.

In some cases, triggers could execute more quickly by examining the scheduled action time and comparing it to the current time, then exiting early if the trigger is executing too far away from real time (for example, it might not make sense to send a meeting reminder after a meeting already happened).

However, in most cases the task needs to have this logic anyway (because there may be another arbitrarily long delay between when this code executes and when the task executes), and the cost of queueing a task is very small, and situations where triggers are executing far away from real time should be rare (major downtime or serious problems with the pipeline).

The properties of this action map to the parameters of PhabricatorWorker::scheduleTask().

Methods

public function __construct($properties)
Inherited

This method is not documented.
Parameters
array$properties
Return
this//Implicit.//

public function getProperties()
Inherited

This method is not documented.
Return
wild

public function getProperty($key, $default)
Inherited

This method is not documented.
Parameters
$key
$default
Return
wild

public function validateProperties($properties)

PhabricatorTriggerAction

Validate action configuration.

PhabricatorScheduleTaskTriggerAction
This method is not documented.
Parameters
array<string, mixed>$propertiesMap of action properties.
Return
void