Differential D20643 Diff 49246 src/applications/daemon/management/PhabricatorDaemonManagementStartWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/daemon/management/PhabricatorDaemonManagementStartWorkflow.php
Show All 19 Lines | $this | ||||
'By default, **%s** will free all task leases held by '. | 'By default, **%s** will free all task leases held by '. | ||||
'the daemons. With this flag, this step will be skipped.', | 'the daemons. With this flag, this step will be skipped.', | ||||
'phd start'), | 'phd start'), | ||||
), | ), | ||||
array( | array( | ||||
'name' => 'force', | 'name' => 'force', | ||||
'help' => pht('Start daemons even if daemons are already running.'), | 'help' => pht('Start daemons even if daemons are already running.'), | ||||
), | ), | ||||
array( | |||||
'name' => 'foreground', | |||||
'help' => pht('Start daemons in the foreground.'), | |||||
), | |||||
$this->getAutoscaleReserveArgument(), | $this->getAutoscaleReserveArgument(), | ||||
)); | )); | ||||
} | } | ||||
public function execute(PhutilArgumentParser $args) { | public function execute(PhutilArgumentParser $args) { | ||||
return $this->executeStartCommand( | return $this->executeStartCommand( | ||||
array( | array( | ||||
'keep-leases' => $args->getArg('keep-leases'), | 'keep-leases' => $args->getArg('keep-leases'), | ||||
'force' => $args->getArg('force'), | 'force' => $args->getArg('force'), | ||||
'foreground' => $args->getArg('foreground'), | |||||
'reserve' => (float)$args->getArg('autoscale-reserve'), | 'reserve' => (float)$args->getArg('autoscale-reserve'), | ||||
)); | )); | ||||
} | } | ||||
} | } |