Inspect a job in the system, regardless of what tube it is in.

@param int $jobId
@return object Pheanstalk_Job
540414
public function peek($jobId)
	{
		$response = $this->_dispatch(
			new Pheanstalk_Command_PeekCommand($jobId)
		);

		return new Pheanstalk_Job($response['id'], $response['jobdata']);
	}
558450
public function getJob($jobId)
    {
        $requestData = $this->getDefaultRequestData('query', []);
        return $this->sendRequest('jobs/' . $jobId, $requestData, self::HTTP_METHOD_GET);
    }
13257
public function show($id)
    {
        return (array) $this->jobs->getJobs([$id])->map(function ($job) {
            return $this->decode($job);
        })->first();
    }
346929
public function show(JobRequest $request, Job $job)
    {

        if ($job->exists) {
            $view = 'career::job.show';
        } else {
            $view = 'career::job.new';
        }

        return $this->response->title(trans('app.view') . ' ' . trans('career::job.name'))
            ->data(compact('job'))
            ->view($view, true)
            ->output();
    }
538173
public function peekReady()
	{
		$response = $this->_dispatch(
			new Pheanstalk_Command_PeekCommand(Pheanstalk_Command_PeekCommand::TYPE_READY)
		);

		return new Pheanstalk_Job($response['id'], $response['jobdata']);
	}
475866
public function get($job_id)
    {
        $result = null;
        $this->hook->attach('job.get.before', $job_id, $result, $this);

        if (isset($result)) {
            return $result;
        }

        $result = $this->getSession($job_id);
        $this->hook->attach('job.get.after', $job_id, $result, $this);
        return $result;
    }
937184
public function setJobConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectJobConfig::class);
        $this->job_config = $var;

        return $this;
    }
816673
public function getBatchResult($jobId)
    {
        $result = $this->httpGet(self::WECHAT_BATCH_RESULT_GET_PREFIX, [
            'access_token' => $this->getAccessToken(),
            'jobid' => $jobId
        ]);
        return isset($result['errmsg']) && $result['errmsg'] == 'ok' ? $result : $this->dump($result);
    }
837288
public static EntityGetOperation<JobInfo> get(String jobId) {
        return new DefaultGetOperation<JobInfo>(ENTITY_SET, jobId,
                JobInfo.class);
    }
983463
public function setId($id)
    {
        if ($this->hasData(self::P_ID)) {
            throw new JobException('Cant set id cause it is already sets!');
        }

        return $this->setData(self::P_ID, $id);
    }
1299357
public function getJobJsonError($jobId)
    {
        $response = $this->mailjet->get(Resources::$BatchjobJsonerror, ['id' => $jobId]);
        if (!$response->success()) {
            $this->throwError("ContactsListSynchronizer:getJobJsonError() failed", $response);
        }

        return $response->getBody();
    }
1238603
public function getLengthQueue($jobType = null) {
		$jobType = (string)$jobType;
		$queueLength = 0;
		$pendingStats = $this->getPendingStats();
		if (empty($pendingStats)) {
			return $queueLength;
		}

		foreach ($pendingStats as $pendingStatsItem) {
			if ((!empty($jobType) && (strcmp($pendingStatsItem[$this->alias]['jobtype'], $jobType) !== 0)) ||
				($pendingStatsItem[$this->alias]['status'] !== 'NOT_STARTED')) {
				continue;
			}

			$queueLength++;
		}

		return $queueLength;
	}
416222
public function getJob($id)
    {
		$url = $this->service_url . '/jobs/' . $id;
		$data = $this->service->prepAndSend($url, array(200), 'GET', null, true, 'application/job+json', 'application/job+json');
        return Job::createFromJSON(json_decode($data));
	}
480633
protected function _getJobDirectory(Job $job)
    {
        $jobDir = $this->getDirectory() . DIRECTORY_SEPARATOR . $job->getId();
        $this->_prepareDirectory($jobDir);

        return $jobDir;
    }
425216
public function getEmployee($employeeId)
    {
        $result = null;
        $this->addHeader();
        try {
            $employee = $this->getSoap()->GetAcsEmployee([
                'id' => $employeeId
            ]);
            if (isset($employee->GetAcsEmployeeResult)) {
                $result = new Employee((array)$employee->GetAcsEmployeeResult);
            }
        } catch (\SoapFault $ex) {
            $result = false;
            $this->logError();
        }
        return $result;
    }
453693
public function job($job, $queue = null)
    {
        return $this->call(
            function () use ($job, $queue) {
                $job = is_string($job) ? resolve($job) : $job;

                if ($job instanceof ShouldQueue) {
                    dispatch($job)->onQueue($queue);
                } else {
                    dispatch_now($job);
                }
            }
        )->name(is_string($job) ? $job : get_class($job));
    }
169705
public function getFlexiRow($recordID)
    {
        $record   = null;
        $response = $this->performRequest($this->evidence.'/'.$recordID.'.json');
        if (isset($response[$this->evidence])) {
            $record = $response[$this->evidence][0];
        }

        return $record;
    }