From 33a4b74ac6a28e5742b5f00a87e6176439c5bf94 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Tue, 25 Oct 2022 11:27:20 -0400 Subject: [PATCH] If nonqueue fetch failed, let the connection get refreshed later and eventually try again Signed-off-by: Mike Rylander --- Open-ILS/src/support-scripts/ingest_ctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/support-scripts/ingest_ctl b/Open-ILS/src/support-scripts/ingest_ctl index 9ac98443d6..66311b2134 100755 --- a/Open-ILS/src/support-scripts/ingest_ctl +++ b/Open-ILS/src/support-scripts/ingest_ctl @@ -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"); -- 2.11.0