avikganguly01 commented on a change in pull request #459: FINERACT-429: Node
aware Scheduler
URL: https://github.com/apache/fineract/pull/459#discussion_r197642941
##########
File path:
fineract-provider/src/main/java/org/apache/fineract/infrastructure/jobs/service/JobRegisterServiceImpl.java
##########
@@ -199,7 +229,11 @@ public void startScheduler() {
for (final ScheduledJobDetail jobDetail : scheduledJobDetails)
{
if (jobDetail.isTriggerMisfired()) {
if (jobDetail.isActiveSchedular()) {
- executeJob(jobDetail,
SchedulerServiceConstants.TRIGGER_TYPE_CRON);
+ if
(jobDetail.getNodeId().toString()==System.getProperty("node.id")) {
Review comment:
Also handle for a NodeID value which will run in all nodes like 0.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services