mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 19:20:05 -03:30
Merge pull request #3017 from ryanpetrello/beat-shelve-error
close the persistent shelve when we're done checking it Reviewed-by: Alan Rominger <arominge@redhat.com> https://github.com/AlanCoding
This commit is contained in:
@@ -87,6 +87,11 @@ class Command(BaseCommand):
|
|||||||
except Exception:
|
except Exception:
|
||||||
logger.exception('{} is corrupted, removing.'.format(sched_file))
|
logger.exception('{} is corrupted, removing.'.format(sched_file))
|
||||||
sched._remove_db()
|
sched._remove_db()
|
||||||
|
finally:
|
||||||
|
try:
|
||||||
|
sched.close()
|
||||||
|
except Exception:
|
||||||
|
logger.exception('{} failed to sync/close'.format(sched_file))
|
||||||
|
|
||||||
beat.Beat(
|
beat.Beat(
|
||||||
30,
|
30,
|
||||||
|
|||||||
Reference in New Issue
Block a user