Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: allow users to configure interval for Semi-Auto payment reconciliation (backport #45211) #45267

Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 14, 2025

Limitation

Semi-Auto Payment Reconciliation was hard coded to run every 15 min processing only 5 unique Process Payment Reconciliation documents. Initial requirement was to handle small number of parties will large volume of unreconciled invoices.

But, for the inverse scenario - thousands of parties but only a dozen or so unreconciled invoices, this interval and queue size is not ideal.

Solution

Making Trigger interval and Queue size configurable.

ToDo:

  • better field names(?)

upstream dependency: frappe/frappe#29122


This is an automatic backport of pull request #45211 done by Mergify.

…onciliation (#45211)

* refactor: configurable interval for reconciliation trigger

* refactor: set default value for interval

* refactor: configurable queue size

* refactor: use patch to setup default cron job

* refactor: use 'after_migrate' to setup cron for reconciliation

User specified interval will be used

* chore: type casting

* refactor: use scheduler_event to persist cron

* chore: rename field

* chore: use configured queue size

* chore: remove unwanted field

(cherry picked from commit ce9c606)
@mergify mergify bot requested a review from deepeshgarg007 as a code owner January 14, 2025 11:46
@mergify mergify bot requested a review from ruthra-kumar as a code owner January 14, 2025 11:46
@github-actions github-actions bot added accounts needs-tests This PR needs automated unit-tests. labels Jan 14, 2025
@ruthra-kumar ruthra-kumar merged commit d508ea2 into version-15-hotfix Jan 14, 2025
12 checks passed
@ruthra-kumar ruthra-kumar deleted the mergify/bp/version-15-hotfix/pr-45211 branch January 14, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accounts needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant