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 #45211

Conversation

ruthra-kumar
Copy link
Member

@ruthra-kumar ruthra-kumar commented Jan 10, 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

@github-actions github-actions bot added accounts needs-tests This PR needs automated unit-tests. labels Jan 10, 2025
@ruthra-kumar ruthra-kumar force-pushed the configurable_cron_interval_and_queue_size branch 2 times, most recently from 55b3d0c to 6f55d88 Compare January 13, 2025 08:48
@ruthra-kumar ruthra-kumar added the squash Meant to tell reviewers that this PR should be squashed into a single commit while merging. label Jan 13, 2025
@ruthra-kumar ruthra-kumar force-pushed the configurable_cron_interval_and_queue_size branch from 6b123f1 to f625a59 Compare January 14, 2025 10:02
@ruthra-kumar ruthra-kumar merged commit ce9c606 into frappe:develop Jan 14, 2025
13 checks passed
mergify bot pushed a commit that referenced this pull request Jan 14, 2025
…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)
ruthra-kumar added a commit that referenced this pull request Jan 14, 2025
…-45211

refactor: allow users to configure interval for Semi-Auto payment reconciliation (backport #45211)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accounts backport version-15-hotfix needs-tests This PR needs automated unit-tests. squash Meant to tell reviewers that this PR should be squashed into a single commit while merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant