Procházet zdrojové kódy

Fixed bug in launch job by job_id

Stephen Ficklin před 12 roky
rodič
revize
ca3418b8ed
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      tripal_core/includes/jobs.php

+ 2 - 1
tripal_core/includes/jobs.php

@@ -295,13 +295,14 @@ function tripal_jobs_launch($do_parallel = 0, $job_id = NULL) {
     $sql =  "SELECT * FROM {tripal_jobs} TJ ".
     $sql =  "SELECT * FROM {tripal_jobs} TJ ".
             "WHERE TJ.start_time IS NULL and TJ.end_time IS NULL and TJ.job_id = %d ".
             "WHERE TJ.start_time IS NULL and TJ.end_time IS NULL and TJ.job_id = %d ".
             "ORDER BY priority ASC,job_id ASC";
             "ORDER BY priority ASC,job_id ASC";
+    $job_res = db_query($sql,$job_id);
   } 
   } 
   else {
   else {
     $sql =  "SELECT * FROM {tripal_jobs} TJ ".
     $sql =  "SELECT * FROM {tripal_jobs} TJ ".
             "WHERE TJ.start_time IS NULL and TJ.end_time IS NULL ".
             "WHERE TJ.start_time IS NULL and TJ.end_time IS NULL ".
             "ORDER BY priority ASC,job_id ASC";
             "ORDER BY priority ASC,job_id ASC";
+    $job_res = db_query($sql);
   }
   }
-  $job_res = db_query($sql);
   while ($job = db_fetch_object($job_res)) {
   while ($job = db_fetch_object($job_res)) {
     // set the start time for this job
     // set the start time for this job
     $record = new stdClass();
     $record = new stdClass();