Skip to content

Commit

Permalink
Lower the listeneer timeout and add debug message
Browse files Browse the repository at this point in the history
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
  • Loading branch information
Adam.Dybbroe committed Jun 18, 2023
1 parent f97ce0f commit 049fb27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cspp_runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ def run(self, msg, publisher, viirs_sdr_call, viirs_sdr_options,
"""Start the VIIRS SDR processing using CSPP on one rdr granule."""
if msg:
LOG.debug("Received message: " + str(msg))
else:
LOG.debug("Message is None!")

LOG.debug("glist: " + str(self.glist))
if msg is None and self.glist and len(self.glist) > 2:
Expand Down Expand Up @@ -644,7 +646,7 @@ def npp_rolling_runner(
while True:
LOG.debug("Re-initialise the viirs processor instance.")
viirs_proc.initialise()
for msg in subscr.recv(timeout=300):
for msg in subscr.recv(timeout=90):
status = viirs_proc.run(
msg, publisher,
viirs_sdr_call, viirs_sdr_options,
Expand Down

0 comments on commit 049fb27

Please sign in to comment.