瀏覽代碼

Add testing messages

Abdullah Almsaeed 8 年之前
父節點
當前提交
143635ccf0
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      tripal_core/api/tripal_core.jobs.api.inc

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

@@ -287,7 +287,9 @@ function tripal_execute_job($job_id, $redirect = TRUE) {
 
   // set the end time for this job
   if ($job->end_time == 0) {
-    exec("drush trp-run-jobs --username=".$user->name." --root=".DRUPAL_ROOT."", $output);
+    exec("drush trp-run-jobs --username=".$user->name." --root=".DRUPAL_ROOT."", $output, $return);
+    drupal_set_message(t(implode(" ", $output)));
+    drupal_set_message(t(implode(" ", $return)));
   }
   else {
     drupal_set_message(t("Job %job_id cannot be executed. It is in progress or has finished.", array('%job_id' => $job_id)));