This commit is contained in:
Curtis Castrapel
2018-10-22 14:51:13 -07:00
parent 65060d3321
commit 73ed5164cd
7 changed files with 36 additions and 4 deletions

View File

@ -360,6 +360,7 @@ def update_destinations(target, value, initiator):
status = SUCCESS_METRIC_STATUS
except Exception as e:
sentry.captureException()
raise
metrics.send('destination_upload', 'counter', 1,
metric_tags={'status': status, 'certificate': target.name, 'destination': value.label})

View File

@ -90,7 +90,7 @@ def get_all_pending_cleaning(source):
:return:
"""
return Certificate.query.filter(Certificate.sources.any(id=source.id)) \
.filter(not_(Certificate.endpoints.any())).all()
.filter(not_(Certificate.endpoints.any())).filter(Certificate.expired).all()
def get_all_pending_reissue():