Hi Ádám Sághy Thank you for your response.
Please find below the clarification on your queries: 1. What exactly do you mean by “custom scheduler”? We have developed a few custom schedulers to enhance Fineract’s functionality, specifically for new modules that require generating daily accruals. These schedulers follow the existing scheduler patterns within Fineract but are tailored for our custom logic. 1. How are the schedulers deployed across multiple servers? We have two servers running the same codebase, both connected to the same database. Each server has the scheduler enabled. The job configurations, including the cron_expression, are stored in the shared job table in the database. As a result, both servers read the job configuration and independently trigger the same scheduled tasks, leading to duplicate execution. 1. Are they part of the same application instance or running independently? The schedulers are running on two separate, independent application instances hosted on different servers. Each instance reads from the same database and executes the scheduler jobs individually, which is causing the duplication issue. Please let me know if you need any further details or logs. I’d appreciate any suggestions on how best to manage schedulers in such a multi-server environment to prevent duplicate job executions. From: Ádám Sághy <adamsa...@gmail.com> Sent: Monday, June 30, 2025 2:32 PM To: dev@fineract.apache.org Subject: Re: Handling Duplicate Entries from Custom Schedulers in Fineract (Multi-Server Environment) Hi Bhaskar, Thank you for reaching out. I’d appreciate it if you could clarify a few points to help me better understand the issue: * What exactly do you mean by “custom scheduler”? * How are the schedulers deployed across multiple servers? * Are they part of the same application instance or running independently? A bit more detail on your setup and the logic you’ve implemented would be helpful in identifying the root cause and suggesting a solution. Regards, Adam On 2025. Jun 30., at 10:11, Bhaskar Tiwari <bhas...@strideone.in<mailto:bhas...@strideone.in>> wrote: Hi Team, I’ve implemented some custom schedulers in Fineract using existing patterns. However, I’m encountering an issue with duplicate entries when two servers are running concurrently and share the same database. While I’ve added logic to prevent duplicate accrual entries when schedulers are triggered multiple times, the problem arises because these schedulers are running on separate servers. As a result, each instance bypasses the duplication check, leading to duplicate accrual entries in the database. Is there a recommended way to manage custom schedulers in a multi-server setup to avoid this issue? Looking forward to your suggestions. Regards Bhaskar Tiwari "Print this mail only if absolutely necessary. Save Paper. Save Trees." Disclaimer: “This electronic mail message sent from StrideOne (Stride Fintree Private Limited) may contain Confidential/Restricted/Internal information and should only be viewed by the intended recipients. Under no circumstances may any such information be disclosed, copied, used or distributed to any unauthorized persons or entities without the written consent of Strideone. If you are not the intended recipient, any review, retransmission, dissemination or reliance on the content of these materials is strictly prohibited and may be the subject of legal action. If you received this email in error, please notify the sender and delete the message immediately.” "Print this mail only if absolutely necessary. Save Paper. Save Trees." Disclaimer: “This electronic mail message sent from StrideOne (Stride Fintree Private Limited) may contain Confidential/Restricted/Internal information and should only be viewed by the intended recipients. Under no circumstances may any such information be disclosed, copied, used or distributed to any unauthorized persons or entities without the written consent of Strideone. If you are not the intended recipient, any review, retransmission, dissemination or reliance on the content of these materials is strictly prohibited and may be the subject of legal action. If you received this email in error, please notify the sender and delete the message immediately.”