Browse Source

Add testing messages

Abdullah Almsaeed 8 years ago
parent
commit
f860f87c06
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tripal_core/api/tripal_core.jobs.api.inc

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

@@ -287,8 +287,9 @@ function tripal_execute_job($job_id, $redirect = TRUE) {
 
 
   // set the end time for this job
   // set the end time for this job
   if ($job->end_time == 0) {
   if ($job->end_time == 0) {
-    exec("drush trp-run-jobs --username=".$user->name." --root=".DRUPAL_ROOT."", $output, $return);
+    $o = exec("drush trp-run-jobs --username=".$user->name." --root=".DRUPAL_ROOT."", $output, $return);
     drupal_set_message(t(implode(" ", $output)));
     drupal_set_message(t(implode(" ", $output)));
+    drupal_set_message($o);
     drupal_set_message($job_id);
     drupal_set_message($job_id);
   }
   }
   else {
   else {