Explorar o código

Update execution condition

Abdullah Almsaeed %!s(int64=8) %!d(string=hai) anos
pai
achega
b26aa14751
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tripal_core/api/tripal_core.jobs.api.inc

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

@@ -286,7 +286,7 @@ function tripal_execute_job($job_id, $redirect = TRUE) {
   $job = $results->fetchObject();
 
   // set the end time for this job
-  if ($job->start_time == 0 && $job->end_time == 0) {
+  if ($job->end_time == 0) {
     exec("drush trp-run-jobs --username=".$user->name." --root=".DRUPAL_ROOT."", $output);
 
     var_dump($output);