Merge pull request #36900 from GursheenK/pcv-request-timeout

fix: reduce threshold for background job in PCV
This commit is contained in:
Deepesh Garg 2023-09-02 17:11:08 +05:30 committed by GitHub
commit 30aba9414c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ class PeriodClosingVoucher(AccountsController):
def make_gl_entries(self, get_opening_entries=False):
gl_entries = self.get_gl_entries()
closing_entries = self.get_grouped_gl_entries(get_opening_entries=get_opening_entries)
if len(gl_entries) > 5000:
if len(gl_entries + closing_entries) > 3000:
frappe.enqueue(
process_gl_entries,
gl_entries=gl_entries,