Skip to content

Commit

Permalink
fix: reduce threshold for bg job fn
Browse files Browse the repository at this point in the history
(cherry picked from commit b6e6f2e)
  • Loading branch information
GursheenK authored and mergify[bot] committed Sep 2, 2023
1 parent 543e4c8 commit 5a226a8
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 5a226a8

Please sign in to comment.