Skip to content

Conversation

luizstacio
Copy link
Member

@luizstacio luizstacio commented May 30, 2025

This pull request introduces a new configuration option for historical gap processing intervals, refactors logging to use structured tracing, and enhances the flexibility of periodic tasks. The most important changes include adding the history_interval parameter to the CLI, enabling dynamic control of historical gap processing intervals, and replacing println! statements with tracing::info! for improved logging.

Configuration Enhancements:

  • services/publisher/src/cli.rs: Added a new CLI argument history_interval to configure the interval for processing historical gaps. The default value is set to 259200 seconds (3 days), with an option to disable by setting it to 0.

Periodic Task Improvements:

  • services/publisher/src/history.rs: Updated process_historical_gaps_periodically to dynamically adjust the interval based on the new history_interval parameter. If the interval is set to 0, the task is disabled and logs a message indicating this.
  • services/publisher/src/main.rs: Modified the process_historical_gaps_periodically invocation in main to use the history_interval parameter from the CLI.

Logging Refactor:

@luizstacio luizstacio merged commit b53253a into main May 30, 2025
36 checks passed
@luizstacio luizstacio deleted the feat/historical-interval-config branch May 30, 2025 22:19
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.

1 participant