CC-5709: Airtime Analyzer
* Catch exceptions related to unpickling the HTTP request queue
This commit is contained in:
parent
f2ce77fecb
commit
9fdfc0a957
@ -45,6 +45,13 @@ def process_http_requests(ipc_queue, http_retry_queue_path):
|
||||
pass
|
||||
else:
|
||||
raise e
|
||||
except Exception as e:
|
||||
# If we fail to unpickle a saved queue of failed HTTP requests, then we'll just log an error
|
||||
# and continue because those HTTP requests are lost anyways. The pickled file will be
|
||||
# overwritten the next time the analyzer is shut down too.
|
||||
logging.error("Failed to unpickle %s. Continuing..." % http_retry_queue_path)
|
||||
pass
|
||||
|
||||
|
||||
while not shutdown:
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user