diff options
Diffstat (limited to 'python/quantifi_status.py')
| -rw-r--r-- | python/quantifi_status.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/python/quantifi_status.py b/python/quantifi_status.py index 147c50bf..32aa8267 100644 --- a/python/quantifi_status.py +++ b/python/quantifi_status.py @@ -30,14 +30,15 @@ def close_and_reconnect(): def run(): - try: - for f in QuantifiRemote._client.list_files("/OUTGOING/Status"): - QuantifiRemote.process(f) - except (SSHException, OSError) as e: - logger.info(e) - close_and_reconnect() - time.sleep(60) - QuantifiRemote.check_cache() + while True: + try: + for f in QuantifiRemote._client.list_files("/OUTGOING/Status"): + QuantifiRemote.process(f) + except (SSHException, OSError) as e: + logger.info(e) + close_and_reconnect() + time.sleep(60) + QuantifiRemote.check_cache() if __name__ == "__main__": |
