Skip to content

Commit

Permalink
Merge pull request #36900 from GursheenK/pcv-request-timeout
Browse files Browse the repository at this point in the history
fix: reduce threshold for background job in PCV
  • Loading branch information
deepeshgarg007 authored Sep 2, 2023
2 parents e599f75 + b6e6f2e commit 30aba94
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 30aba94

Please sign in to comment.