function tripal_get_job_end

2.x tripal_core.jobs.api.inc tripal_get_job_end($job)

Returns the end time for a given job

Parameters

$job: An object describing the job

Return value

The end time of the job if it was already run and empty otherwise

Related topics

3 calls to tripal_get_job_end()
tripal_jobs_get_end_time in tripal_core/api/tripal_core.DEPRECATED.api.inc
tripal_jobs_report in tripal_core/includes/tripal_core.jobs.inc
Returns the Tripal Job Report
tripal_jobs_view in tripal_core/includes/tripal_core.jobs.inc
Returns the HTML code to display a given job
1 string reference to 'tripal_get_job_end'

File

tripal_core/api/tripal_core.jobs.api.inc, line 253
Tripal offers a job management subsystem for managing tasks that may require an extended period of time for completion.

Code

function tripal_get_job_end($job) {

  if ($job->end_time > 0) {
    $end = format_date($job->end_time);
  }
  else {
    $end = '';
  }

  return $end;
}