function tripal_get_job_start

2.x tripal_get_job_start($job)

Returns the start time for a given job


$job: An object describing the job

Return value

The start time of the job if it was already run and either "Cancelled" or "Not Yet Started" otherwise

Related topics

3 calls to tripal_get_job_start()
tripal_jobs_get_start_time in tripal_core/api/
tripal_jobs_report in tripal_core/includes/
Returns the Tripal Job Report
tripal_jobs_view in tripal_core/includes/
Returns the HTML code to display a given job
1 string reference to 'tripal_get_job_start'


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


function tripal_get_job_start($job) {

  if ($job->start_time > 0) {
    $start = format_date($job->start_time);
  else {
    if (strcmp($job->job_status, 'Cancelled') == 0) {
      $start = 'Cancelled';
    else {
      $start = 'Not Yet Started';
  return $start;