Skip to content

feat: build standalone scheduled job module for warranty and maintena…#559

Merged
yusuftomilola merged 2 commits intoDistinctCodes:mainfrom
NteinPrecious:feat/build-standalone-scheduled-job-module-for-warranty-and-maintenance-alerts
Mar 29, 2026
Merged

feat: build standalone scheduled job module for warranty and maintena…#559
yusuftomilola merged 2 commits intoDistinctCodes:mainfrom
NteinPrecious:feat/build-standalone-scheduled-job-module-for-warranty-and-maintenance-alerts

Conversation

@NteinPrecious
Copy link
Copy Markdown
Contributor

…nce alerts

  • Add src/scheduler/scheduler.module.ts and scheduler.service.ts
  • Daily cron (8 AM) to find assets with warrantyExpiration within 30 days
  • Daily cron (8 AM) to find SCHEDULED maintenance records due within 7 days
  • Each job logs total matched records and their asset IDs (idempotent)
  • Cron schedules configurable via WARRANTY_CRON and MAINTENANCE_CRON env vars (default: '0 8 * * *')
  • Register SchedulerModule in AppModule

Closes #540

…nce alerts

- Add src/scheduler/scheduler.module.ts and scheduler.service.ts
- Daily cron (8 AM) to find assets with warrantyExpiration within 30 days
- Daily cron (8 AM) to find SCHEDULED maintenance records due within 7 days
- Each job logs total matched records and their asset IDs (idempotent)
- Cron schedules configurable via WARRANTY_CRON and MAINTENANCE_CRON env vars
  (default: '0 8 * * *')
- Register SchedulerModule in AppModule

Closes DistinctCodes#540
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 28, 2026

@NteinPrecious is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 28, 2026

@NteinPrecious Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@yusuftomilola yusuftomilola merged commit 9a69c28 into DistinctCodes:main Mar 29, 2026
5 of 7 checks passed
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.

Build a Standalone Scheduled Job Module for Warranty and Maintenance Alerts

2 participants