Differential D11577 Diff 27868 src/infrastructure/daemon/workers/action/PhabricatorScheduleTaskTriggerAction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/workers/action/PhabricatorScheduleTaskTriggerAction.php
| Show All 32 Lines | PhutilTypeSpec::checkMap( | ||||
| 'data' => 'map<string, wild>', | 'data' => 'map<string, wild>', | ||||
| 'options' => 'map<string, wild>', | 'options' => 'map<string, wild>', | ||||
| )); | )); | ||||
| } | } | ||||
| public function execute($last_epoch, $this_epoch) { | public function execute($last_epoch, $this_epoch) { | ||||
| PhabricatorWorker::scheduleTask( | PhabricatorWorker::scheduleTask( | ||||
| $this->getProperty('class'), | $this->getProperty('class'), | ||||
| $this->getProperty('data'), | $this->getProperty('data') + array( | ||||
| 'trigger.last-epoch' => $last_epoch, | |||||
| 'trigger.this-epoch' => $this_epoch, | |||||
| ), | |||||
| $this->getProperty('options')); | $this->getProperty('options')); | ||||
| } | } | ||||
| } | } | ||||