Explorar o código

dump variables for testign

Abdullah Almsaeed %!s(int64=8) %!d(string=hai) anos
pai
achega
3970318ebe
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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
   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 {
     drupal_set_message(t("Job %job_id cannot be executed. It is in progress or has finished.", array('%job_id' => $job_id)));