src/Model/Table/QueueProcessesTable.php
public function buildServerString() {
		$serverName = env('SERVER_NAME') ?: gethostname();
		if (!$serverName) {
			$user = env('USER');
			$logName = env('LOGNAME');
			if ($user || $logName) {
				$serverName = $user . '@' . $logName;
			}
		}

		return $serverName ?: null;
	}
public function buildServerString() {
		$serverName = env('SERVER_NAME') ?: gethostname();
		if (!$serverName) {
			$user = env('USER');
			$logName = env('LOGNAME');
			if ($user || $logName) {
				$serverName = $user . '@' . $logName;
			}
		}

		return $serverName ?: null;
	}
public function buildServerString ( ) { $ serverName = env ( 'SERVER_NAME' ) ? : gethostname ( ) ; if ( ! $ serverName ) { $ user = env ( 'USER' ) ; $ logName = env ( 'LOGNAME' ) ; if ( $ user || $ logName ) { $ serverName = $ user . '@' . $ logName ; } } return $ serverName ? : null ; }
Use ENV to control the server name of the servers run workers with.

export SERVER_NAME=myserver1

This way you can deploy separately and only end the processes of that server.

@return string|null
Use ENV to control the server name of the servers run workers with .