Differential D20601 Diff 49167 src/applications/daemon/management/PhabricatorDaemonManagementRestartWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/daemon/management/PhabricatorDaemonManagementRestartWorkflow.php
| Show All 29 Lines | $this | ||||
| 'not have corresponding PID files.'), | 'not have corresponding PID files.'), | ||||
| ), | ), | ||||
| $this->getAutoscaleReserveArgument(), | $this->getAutoscaleReserveArgument(), | ||||
| )); | )); | ||||
| } | } | ||||
| public function execute(PhutilArgumentParser $args) { | public function execute(PhutilArgumentParser $args) { | ||||
| $err = $this->executeStopCommand( | $err = $this->executeStopCommand( | ||||
| array(), | |||||
| array( | array( | ||||
| 'graceful' => $args->getArg('graceful'), | 'graceful' => $args->getArg('graceful'), | ||||
| 'force' => $args->getArg('force'), | 'force' => $args->getArg('force'), | ||||
| 'gently' => $args->getArg('gently'), | 'gently' => $args->getArg('gently'), | ||||
| )); | )); | ||||
| if ($err) { | if ($err) { | ||||
| return $err; | return $err; | ||||
| } | } | ||||
| return $this->executeStartCommand( | return $this->executeStartCommand( | ||||
| array( | array( | ||||
| 'reserve' => (float)$args->getArg('autoscale-reserve'), | 'reserve' => (float)$args->getArg('autoscale-reserve'), | ||||
| )); | )); | ||||
| } | } | ||||
| } | } | ||||