From 1014fc621ef60301911e7efbd5d48dc44f1cdbb2 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Mon, 14 Jan 2019 12:54:19 +0530 Subject: [PATCH] Don't assume async value If async was passed in it was being set as true even if the paased value is false. This commit fixes the same. --- frappe/utils/background_jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/background_jobs.py b/frappe/utils/background_jobs.py index f1194edaf4..46a1546a55 100755 --- a/frappe/utils/background_jobs.py +++ b/frappe/utils/background_jobs.py @@ -37,7 +37,7 @@ def enqueue(method, queue='default', timeout=None, event=None, ''' # To handle older implementations if 'async' in kwargs: - is_async = True + is_async = kwargs.get('async') del kwargs['async'] if now or frappe.flags.in_migrate: