worklenz icon indicating copy to clipboard operation
worklenz copied to clipboard

feat: cron job separation

Open Nadeera3784 opened this issue 9 months ago • 0 comments

This pull request involves relocating the cron job from the www.ts file to a separate server. The key changes and reasons for this modification are outlined below:

Changes Made:

  • startCronJobs() function removed from www.ts
  • startCronJobs() moved to new server as cron.ts
  • Cron server start command added to the package.json
  • Instruction added to the documentation

Reasons for the change:

  • By offloading the cron job to a separate server, we can reduce the load on the main application server, enhancing its performance and responsiveness.
  • Running the cron job on a dedicated server minimizes the risk of it being affected by the main server's workload or potential downtimes.
  • This change allows for easier scaling of both the main application and the cron job independently, improving overall system scalability.
  • Separating concerns between the main application logic and scheduled tasks simplifies maintenance and future updates.

Nadeera3784 avatar May 24 '24 09:05 Nadeera3784