Merge pull request #1890 from castrapel/check_last_updated_5_min

Only resolve pending cert if not attempted in last 5 min
This commit is contained in:
Curtis 2018-10-23 13:27:50 -07:00 committed by GitHub
commit 9d7ad28ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ def fetch_all_pending_acme_certs():
cert_authority = get_authority(cert.authority_id) cert_authority = get_authority(cert.authority_id)
if cert_authority.plugin_name == 'acme-issuer': if cert_authority.plugin_name == 'acme-issuer':
if cert.last_updated == cert.date_created or datetime.now( if cert.last_updated == cert.date_created or datetime.now(
timezone.utc) - cert.last_updated > timedelta(minutes=3): timezone.utc) - cert.last_updated > timedelta(minutes=5):
fetch_acme_cert.delay(cert.id) fetch_acme_cert.delay(cert.id)