add countdown to async call

This commit is contained in:
Curtis Castrapel
2018-11-28 14:41:56 -08:00
parent e074a14ee9
commit 39b76d18dc
2 changed files with 2 additions and 13 deletions

View File

@ -282,7 +282,7 @@ def create(**kwargs):
pending_cert = database.session_query(PendingCertificate).get(cert.id)
from lemur.common.celery import fetch_acme_cert
if not current_app.config.get("ACME_DISABLE_AUTORESOLVE", False):
fetch_acme_cert.delay(pending_cert.id)
fetch_acme_cert.apply_async((pending_cert.id,), countdown=5)
return cert