CC-5709: Airtime Analyzer
* Catch exceptions related to unpickling the HTTP request queue
This commit is contained in:
parent
f2ce77fecb
commit
9fdfc0a957
1 changed files with 7 additions and 0 deletions
|
@ -45,6 +45,13 @@ def process_http_requests(ipc_queue, http_retry_queue_path):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
raise e
|
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:
|
while not shutdown:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue