Page MenuHomec4science

NuanceManagementUpdateWorkflow.php
No OneTemporary

File Metadata

Created
Sat, Jan 18, 19:08

NuanceManagementUpdateWorkflow.php

<?php
final class NuanceManagementUpdateWorkflow
extends NuanceManagementWorkflow {
protected function didConstruct() {
$this
->setName('update')
->setExamples('**update** --item __item__ [__options__]')
->setSynopsis(pht('Update or route an item.'))
->setArguments(
array(
array(
'name' => 'item',
'param' => 'item',
'help' => pht('Choose which item to route.'),
),
));
}
public function execute(PhutilArgumentParser $args) {
$item = $this->loadItem($args, 'item');
PhabricatorWorker::setRunAllTasksInProcess(true);
$item->scheduleUpdate();
return 0;
}
}

Event Timeline