Skip to content

handle cron support to cluster [bin/www] - #40

Merged
cB-Abhinav-Gautam merged 1 commit into
mainfrom
update/bin-www
Nov 27, 2025
Merged

cB-Abhinav-Gautam merged 1 commit into
mainfrom
update/bin-www

Conversation

@cB-Guru-Sharan-Kumar-Ram

Copy link
Copy Markdown
Collaborator
  • Moved database sync and cron job initialization into the master process to prevent
    duplicated executions across cluster workers.
  • Added structured cluster management in bin/www with dynamic worker allocation
    and auto-restart on worker crashes.
  • Cleaned up app.js to only load middleware, routes, and core Express configuration.
  • Introduced init.js to centralize master-only initialization logic.
  • Updated package.json with new dependencies ("node-cron", "nodemon") and added package-lock.json to .gitignore.

@codebucket-sonarqube

Copy link
Copy Markdown

Passed Quality Gate passed

Issues

Measures

Project ID: Codebucket-Solutions_node-template_f63a063e-1f88-4da3-b0be-b4fb5a006098

View in SonarQube

@cB-Abhinav-Gautam
cB-Abhinav-Gautam merged commit 81b5bcc into main Nov 27, 2025
3 of 4 checks passed
@engineering-fabric
engineering-fabric Bot deleted the update/bin-www branch November 27, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants