If nonqueue fetch failed, let the connection get refreshed later and eventually try...
authorMike Rylander <mrylander@gmail.com>
Tue, 25 Oct 2022 15:27:20 +0000 (11:27 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 25 Oct 2022 15:27:20 +0000 (11:27 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/support-scripts/ingest_ctl

index 9ac9844..66311b2 100755 (executable)
@@ -705,7 +705,7 @@ SELECT  run_at::DATE AS scheduled_date,
         warn_if_chatty("gathering orphan entries");
 
         my $new_entries = gather_outstanding_nonqueue_entries(10 * $max_child); # array ref of queue entries
-        if (@$new_entries) {
+        if ($new_entries and @$new_entries) {
             warn_if_chatty("".scalar(@$new_entries)." new entries");
             if ($orphan_processor->{state}) { # already processing some entries
                 warn_if_chatty("orphan processor is busy, wait and loop");