Only resolve pending cert if not attempted in last 5 min
This commit is contained in:
parent
054cc64ee8
commit
b709eed3c3
@ -143,7 +143,7 @@ def fetch_all_pending_acme_certs():
|
||||
cert_authority = get_authority(cert.authority_id)
|
||||
if cert_authority.plugin_name == 'acme-issuer':
|
||||
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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user