Skip to content

Fixes #27927: Add a schedule module#6739

Merged
Normation-Quality-Assistant merged 1 commit intoNormation:branches/rudder/9.1from
amousset:bug_27927/add_a_schedule_module
Mar 3, 2026
Merged

Fixes #27927: Add a schedule module#6739
Normation-Quality-Assistant merged 1 commit intoNormation:branches/rudder/9.1from
amousset:bug_27927/add_a_schedule_module

Conversation

@amousset
Copy link
Copy Markdown
Member

@amousset amousset commented Nov 24, 2025

https://issues.rudder.io/issues/27927

The general behavior is to use the events from the policies, and only use the database as a flag to store that once events have run.

Left for later:

  • Refactor and deduplicate the cli_table config into rudder_cli.
  • Maybe deduplicate a part of the SQLite stuff.
  • Make changes more atomic with a single transaction.
  • Implement proper handling of canceled events (events removed by the server before run). Currently they sit around in the CLI output without proper indication.

@amousset amousset force-pushed the bug_27927/add_a_schedule_module branch 3 times, most recently from f802843 to e1d97e4 Compare December 31, 2025 15:50
@amousset
Copy link
Copy Markdown
Member Author

amousset commented Jan 7, 2026

PR updated with a new commit

2 similar comments
@amousset
Copy link
Copy Markdown
Member Author

amousset commented Jan 7, 2026

PR updated with a new commit

@amousset
Copy link
Copy Markdown
Member Author

PR updated with a new commit

@amousset amousset force-pushed the bug_27927/add_a_schedule_module branch from 7a54b05 to da5b9ca Compare January 13, 2026 16:11
@amousset
Copy link
Copy Markdown
Member Author

PR updated with a new commit

2 similar comments
@amousset
Copy link
Copy Markdown
Member Author

PR updated with a new commit

@amousset
Copy link
Copy Markdown
Member Author

PR updated with a new commit

@amousset amousset force-pushed the bug_27927/add_a_schedule_module branch from 7aaf8a1 to e776a53 Compare February 11, 2026 13:36
@amousset amousset force-pushed the bug_27927/add_a_schedule_module branch from e776a53 to 3917b95 Compare February 19, 2026 07:34
@amousset
Copy link
Copy Markdown
Member Author

PR updated with a new commit

4 similar comments
@amousset
Copy link
Copy Markdown
Member Author

PR updated with a new commit

@amousset
Copy link
Copy Markdown
Member Author

PR updated with a new commit

@amousset
Copy link
Copy Markdown
Member Author

PR updated with a new commit

@amousset
Copy link
Copy Markdown
Member Author

PR updated with a new commit

@amousset amousset marked this pull request as ready for review February 19, 2026 09:53
@amousset amousset marked this pull request as draft February 19, 2026 09:53
@amousset
Copy link
Copy Markdown
Member Author

PR updated with a new commit

@amousset amousset requested a review from Fdall February 19, 2026 11:39
@amousset amousset marked this pull request as ready for review February 19, 2026 11:39
let window = (end - start).num_minutes();
bail!(
"Campaign execution schedule is too short, the minimal schedule should be superior to \
"Event schedule windows is too short, the minimal schedule should be superior to \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
"Event schedule windows is too short, the minimal schedule should be superior to \
"Event schedule window is too short, the minimal schedule should be superior to \

pub fn entry() -> anyhow::Result<(), anyhow::Error> {
// SAFETY: The module is single-threaded.
unsafe {
env::set_var("LC_ALL", "C");
Copy link
Copy Markdown
Contributor

@m4rtinh4rt m4rtinh4rt Feb 26, 2026

Choose a reason for hiding this comment

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

Is this required for proper output rendering?
LC_ALL is Unix-only. Do we need something similar for Windows?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I will be used by some tooling on Windows, so no harm keeping it.

@Normation-Quality-Assistant
Copy link
Copy Markdown
Contributor

OK, squash merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant force-pushed the bug_27927/add_a_schedule_module branch from ce541a6 to af51d29 Compare March 3, 2026 10:07
@Normation-Quality-Assistant Normation-Quality-Assistant merged commit af51d29 into Normation:branches/rudder/9.1 Mar 3, 2026
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.

4 participants