updateProcLine

@param string $status
557229
protected function updateProcLine(string $status): void
    {
        if (function_exists('cli_set_process_title')) {
            cli_set_process_title(sprintf('qjitsu-%s: %s', $this->getWorkerType(), $status));
        }
    }
1343679
public function withStatus(string $status): self
    {
        $this->status = JobStatusEnum::ensureValid($status);
        return $this;
    }
219989
public function updateStatus(Subscription $subscription, $status)
    {
        $subscription->setStatus($status);

        if ($status == Subscription::STATUS_SUBSCRIBED) {
            $subscription->setSyncedAt(new \DateTime());
        }

        $this->em->persist($subscription);
        $this->em->flush($subscription);

        return $this;
    }
501956
public function setStatus($status)
    {
        if ($status) {
            $map = $this->factory->getConnection()->getCurrentMapInfo();
            $this->widget->setAuthorTime($map->author, $map->goldTime);
            $this->widget->create($this->allPlayers);
        } else {
            $this->widget->destroy($this->allPlayers);
        }
    }
952985
public static function SetStatus(int $status, bool $exit = false) :void
        {
            if (!HttpStatusCode::IsSupported($status)) {
                throw new \Error("Status code {$status} is not supported");
            }

            self::$status = $status;
            self::AddHeader('Status', $status);

            if ($exit) {
                self::ApplyHeaders();
                exit();
            }
        }
523001
public function setStatus($status) {
        if (!is_int($status)) throw new IllegalTypeException('Illegal type of parameter $status: '.gettype($status));
        if ($status < 1)      throw new InvalidArgumentException('Invalid argument $status: '.$status);

        $this->status = $status;
        return $this;
    }
68623
protected function setStatusPriceRule($status)
    {
        $id = $this->getParam(0);
        $all = $this->getParam('all');

        if (!isset($id) && !$all) {
            $this->errorAndExit($this->text('Invalid command'));
        }

        $result = $options = null;

        if (isset($id)) {

            if (empty($id) || !is_numeric($id)) {
                $this->errorAndExit($this->text('Invalid argument'));
            }

            if ($this->getParam('trigger')) {
                $options = array('trigger_id' => $id);
            } else {
                $result = $this->price_rule->update($id, array('status' => $status));
            }

        } else if ($all) {
            $options = array();
        }

        if (isset($options)) {

            $updated = $count = 0;
            foreach ($this->price_rule->getList($options) as $item) {
                $count++;
                $updated += (int) $this->price_rule->update($item['price_rule_id'], array('status' => $status));
            }

            $result = $count && $count == $updated;
        }

        if (empty($result)) {
            $this->errorAndExit($this->text('Unexpected result'));
        }

        $this->output();
    }
1305219
public function update(string $pr, array $params = [])
    {
        $path = $this->buildPullRequestsPath($pr);

        return $this->put($path, $params);
    }
1049336
public function setStatus($status)
    {
        if (!in_array($status, static::getAvailableStatuses(), true)) {
            throw new InvalidArgumentException(sprintf('Status not recognized ; Had "%s", expected one of "%s"', $status, implode('", "', static::getAvailableStatuses())));
        }

        $this->status = $status;

        return $this;
    }
409590
public function updataMaintenance(bool $status)
    {
        if ($status) {
            if (!file_exists(route()->root.'maintained')) {
                $fh = fopen(route()->root.'maintained', 'w');
                fwrite($fh, 'maintained');
                fclose($fh);
            }
        } elseif (!$status) {
            if (file_exists(route()->root.'maintained')) {
                unlink(route()->root.'maintained');
            }
        } else {
            return false;
        }
    }
637592
public function setStatus($status=null)
    {

        $presence = new \sb\XMPP\Presence();
        $presence->setStatus(is_string($status) ? $status : $this->status);

        $this->sendPresence($presence);
    }
51207
public function setStatus($status)
    {
        if ($status) {
            $this->startMemValue = memory_get_usage(false);
            $this->memoryWidget->create($this->allPlayersGroup);
        } else {
            $this->memoryWidget->destroy($this->allPlayersGroup);
        }
    }
91146
public function setStatus($status)
    {
        if (!in_array($status, $this->getStatusses())) {
            throw new Exception(sprintf('Illegal status %1$s given. Must be one of %2$s', $status, implode(', ', $this->getStatusses())));
        }

        $this->status = $status;

        return $this;
    }
664165
public function setStatus($status) {

        if ( !in_array($status, range(0, 3)) ) throw new InvalidArgumentException("Invalid status $status");

        $this->status = $status;

        return $this;

    }
450579
public function setStatus(int $status)
    {
        $redis = $this->bot->getRedis();
        $redis->set($this->bot->chat_id . ':status', $status);

        $this->status = $status;
    }
121819
protected function _status($id, $status) {
		if (!$this->{$this->modelClass}->changeStatus($id, $status)) {
			return $this->alert('status.fail');
		}
		$this->alert('status.success');
	}
491518
public function updateTaskStatus($taskId, $status)
    {
        if ($this->getPersistence()->has($taskId)) {
            $this->getPersistence()->update($taskId , $status);
        }
        return $this;
    }