Skip to content

Commit

Permalink
Merge pull request #36917 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-36900

fix: reduce threshold for background job in PCV (#36900)
  • Loading branch information
deepeshgarg007 authored Sep 2, 2023
2 parents 78051e7 + 5a226a8 commit 3820953
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def check_if_previous_year_closed(self):
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,
Expand Down

0 comments on commit 3820953

Please sign in to comment.