Merge pull request #24691 from deepeshgarg007/accounting_dimension_timeout

fix: Accounting Dimension creation background job timeout
This commit is contained in:
rohitwaghchaure
2021-02-22 15:29:41 +05:30
committed by GitHub

View File

@@ -43,11 +43,11 @@ class AccountingDimension(Document):
if frappe.flags.in_test:
make_dimension_in_accounting_doctypes(doc=self)
else:
frappe.enqueue(make_dimension_in_accounting_doctypes, doc=self)
frappe.enqueue(make_dimension_in_accounting_doctypes, doc=self, queue='long')
def on_trash(self):
if frappe.flags.in_test:
delete_accounting_dimension(doc=self)
delete_accounting_dimension(doc=self, queue='long')
else:
frappe.enqueue(delete_accounting_dimension, doc=self)