Skip to content

Conversation

@drtechie
Copy link
Member

@drtechie drtechie commented Jun 23, 2025

📋 Description

JIRA ID: NA
Add missing env variables.

✅ Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • New feature (non-breaking change which adds functionality)
  • 🔥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 📚 Documentation (updates to docs or readme)
  • 🧪 Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • 🚀 Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

Summary by CodeRabbit

  • New Features
    • Introduced new configuration options for scheduling automated data sync, data check, and dashboard update tasks, each with customizable enable flags and scheduling times.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 23, 2025

Walkthrough

New scheduler configuration properties have been appended to the application properties file. Three schedulers are introduced, each with an enable flag and a cron expression specifying their execution times. No existing configurations or code logic are changed; only new property entries are added.

Changes

File Change Summary
src/main/resources/application.properties Added enable flags and cron expressions for three new schedulers: CTI data sync, CTI data check, and NHM dashboard.

Poem

Three schedulers hop in, right on time,
With cron-tuned feet, in rhythm and rhyme.
CTI and NHM, each with a plan,
Enabled by flags, they run as they can.
In the meadow of configs, new bunnies appear—
Schedulers scheduled, the schedule is clear!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@sonarqubecloud
Copy link

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 327321c and 07f0054.

📒 Files selected for processing (1)
  • src/main/resources/application.properties (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: Analyze (java)
  • GitHub Check: Build
  • GitHub Check: Package-test

Comment on lines +183 to +188
##-------------------------------###cti data check with call detail report Scheduler------------------------------------------------------

#Runs at everyday 12:10AM
start-ctidatacheck-scheduler=true
cron-scheduler-ctidatacheck=0 00 02 * * *

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Incorrect cron field count & comment mismatch for CTI data check scheduler
The line cron-scheduler-ctidatacheck=0 00 02 * * * uses a 6-field cron (missing the day-of-week placeholder) and conflicts with the comment “Runs at everyday 12:10 AM.” For Quartz compatibility, use 7 fields with ? for day-of-week (e.g., 0 10 00 * * ? * for 12:10 AM) or align both the cron and comment to the intended time.

🤖 Prompt for AI Agents
In src/main/resources/application.properties around lines 183 to 188, the cron
expression for ctidatacheck scheduler uses 6 fields instead of the required 7
for Quartz and does not match the comment time of 12:10 AM. Update the cron
expression to have 7 fields with a '?' for day-of-week, for example, '0 10 0 * *
? *' to run at 12:10 AM daily, or adjust the comment to match the actual cron
time if you want to keep the current schedule.

Comment on lines +176 to +182

##-------------------------------###cti data sync Scheduler configurations------------------------------------------------------

#Runs at every alternative days at 2AM
start-ctidatasync-scheduler=true
cron-scheduler-ctidatasync=0 30 01 * * ? *

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Mismatch between cron and description for CTI data sync scheduler
The cron expression 0 30 01 * * ? * schedules a job daily at 1:30 AM—not every other day at 2 AM as the comment suggests. Update either the cron pattern (e.g., 0 30 01 1/2 * ? * for alternate days at 1:30 AM) or correct the comment/time details.

🤖 Prompt for AI Agents
In src/main/resources/application.properties around lines 176 to 182, the
comment states the CTI data sync scheduler runs every other day at 2 AM, but the
cron expression schedules it daily at 1:30 AM. To fix this, either update the
cron expression to run every other day at the intended time (e.g., use a pattern
like '0 0 2 1/2 * ? *' for 2 AM every other day) or adjust the comment to
accurately reflect the current cron schedule.

Comment on lines +190 to +193
##-----------------------------------------------#NHM data dashboard schedular----------------------------------------------------------------
# run at everyday 12:01AM
start-nhmdashboard-scheduler=true
cron-scheduler-nhmdashboard=0 30 0 * * ? *
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Typo and mismatch in NHM data dashboard scheduler config
The comment “run at everyday 12:01 AM” does not match the cron 0 30 0 * * ? * (12:30 AM). Also, fix “schedular” → “scheduler” for clarity. Update the cron or comment to the correct time and correct the spelling.

🤖 Prompt for AI Agents
In src/main/resources/application.properties around lines 190 to 193, correct
the typo "schedular" to "scheduler" in the comment. Also, ensure the comment
time matches the cron expression: either update the comment to say "run at
everyday 12:30 AM" to match the cron "0 30 0 * * ? *" or change the cron to "0 1
0 * * ? *" if the intended time is 12:01 AM.

@drtechie drtechie changed the title fix: add missing env variables for scheduler [HOLD - do not merge] fix: add missing env variables for scheduler Jun 23, 2025
@drtechie drtechie closed this Jun 24, 2025
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