From b709eed3c3006bf2973ad0729b0205d5b84d5ab8 Mon Sep 17 00:00:00 2001 From: Curtis Castrapel Date: Tue, 23 Oct 2018 13:08:43 -0700 Subject: [PATCH] Only resolve pending cert if not attempted in last 5 min --- lemur/common/celery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/common/celery.py b/lemur/common/celery.py index 74ca7d9f..8dbb6c29 100644 --- a/lemur/common/celery.py +++ b/lemur/common/celery.py @@ -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)