Selaa lähdekoodia

Add the execute link

Abdullah Almsaeed 8 vuotta sitten
vanhempi
commit
6221816fb0

+ 0 - 1
tripal_core/api/tripal_core.jobs.api.inc

@@ -301,7 +301,6 @@ function tripal_execute_job($job_id, $redirect = TRUE) {
     foreach($output as $line) {
       $response .= $line." ";
     }
-    str_replace("[31;40m[1m[error][0m", " ", $response);
     drupal_set_message($cmd.'<br>'.$response."<br> exit code = $return_code", 'error');
   }
   else {

+ 3 - 0
tripal_core/includes/tripal_core.jobs.inc

@@ -288,6 +288,9 @@ function tripal_jobs_view($job_id) {
   if ($job->start_time == 0 and $job->end_time == 0) {
     $links .= l('Cancel this job', "admin/tripal/tripal_jobs/cancel/" . $job->job_id) . ' | ';
   }
+  if($job->end_time == 0) {
+    $links .= l('Execute this job', "admin/tripal/tripal_jobs/execute/".$job->job_id);
+  }
 
   // make our start and end times more legible
   $job->submit_date = tripal_get_job_submit_date($job);