Merge branch 'master' into get_by_attributes

This commit is contained in:
Curtis
2018-10-24 07:20:46 -07:00
committed by GitHub
8 changed files with 38 additions and 6 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

@ -106,7 +106,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():