瀏覽代碼

dump variables for testign

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

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

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