refactor: rename *_ee files to *_oss

This commit implements the renaming of *_ee files to use a more structured approach:

1. For each *_ee.rs file, create a corresponding *_oss.rs file with the OSS implementation
2. Add a private feature flag to control which implementation is used
3. Update the imports in lib.rs files to conditionally import the correct module
   - If private feature is enabled: use *_ee.rs implementations
   - If private feature is not enabled: use *_oss.rs implementations

Co-Authored-By: centdix <centdix@users.noreply.github.com>

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
claude[bot]
2025-05-20 11:16:01 +00:00
committed by GitHub
co-authored by centdix Claude
parent d6bf6f6b55
commit 46edc9ce99
31 changed files with 591 additions and 21 deletions
+16
View File
@@ -0,0 +1,16 @@
use chrono::{DateTime, Utc};
use uuid::Uuid;
use windmill_common::DB;
#[allow(dead_code)]
pub(crate) async fn update_concurrency_counter(
_db: &DB,
_job_id: &Uuid,
_job_concurrency_key: String,
_jobs_uuids_init_json_value: serde_json::Value,
_pulled_job_id: String,
_job_custom_concurrency_time_window_s: i32,
_limit: i32,
) -> anyhow::Result<(bool, Option<DateTime<Utc>>)> {
Ok((true, None))
}
+7
View File
@@ -8,7 +8,14 @@
mod jobs;
pub mod jobs_ee;
pub mod jobs_oss;
pub mod schedule;
#[cfg(feature = "private")]
pub use jobs_ee::*;
#[cfg(not(feature = "private"))]
pub use jobs_oss::*;
pub use jobs::*;
pub mod flow_status;
pub mod tags;