diff --git a/backend/tests/worker.rs b/backend/tests/worker.rs index 28d2289040..30dd99e188 100644 --- a/backend/tests/worker.rs +++ b/backend/tests/worker.rs @@ -27,8 +27,10 @@ use serde::Serialize; use windmill_common::flows::InputTransform; use windmill_common::worker::WORKER_CONFIG; +#[cfg(feature = "python")] +use windmill_common::flow_status::{FlowStatus, FlowStatusModule, RestartedFrom}; + use windmill_common::{ - flow_status::{FlowStatus, FlowStatusModule, RestartedFrom}, flows::{FlowModule, FlowModuleValue, FlowValue}, jobs::{JobKind, JobPayload, RawCode}, jwt::JWT_SECRET, diff --git a/backend/windmill-api/src/postgres_triggers/trigger.rs b/backend/windmill-api/src/postgres_triggers/trigger.rs index c08e917dd4..832fa997f3 100644 --- a/backend/windmill-api/src/postgres_triggers/trigger.rs +++ b/backend/windmill-api/src/postgres_triggers/trigger.rs @@ -372,7 +372,7 @@ impl PostgresConfig { } } - fn retrieve_info(&self) -> PgInfo { + fn retrieve_info(&self) -> PgInfo<'_> { let postgres_resource_path; let publication_name; let replication_slot_name; diff --git a/backend/windmill-api/src/workspaces.rs b/backend/windmill-api/src/workspaces.rs index 5b894eea26..a2b23eb016 100644 --- a/backend/windmill-api/src/workspaces.rs +++ b/backend/windmill-api/src/workspaces.rs @@ -242,15 +242,6 @@ pub struct WorkspaceSettings { pub git_app_installations: Option, } -#[derive(FromRow, Serialize, Debug)] -pub struct Usage { - pub workspace_id: String, - pub slack_team_id: Option, - pub slack_name: Option, - pub slack_command_script: Option, - pub slack_email: String, -} - #[derive(sqlx::Type, Serialize, Deserialize, Debug)] #[sqlx(type_name = "WORKSPACE_KEY_KIND", rename_all = "lowercase")] pub enum WorkspaceKeyKind { diff --git a/backend/windmill-common/src/stats_oss.rs b/backend/windmill-common/src/stats_oss.rs index 829e6e3a5b..f0f75ad0ed 100644 --- a/backend/windmill-common/src/stats_oss.rs +++ b/backend/windmill-common/src/stats_oss.rs @@ -20,14 +20,6 @@ pub async fn schedule_stats(_db: &DB, _http_client: &reqwest::Client) -> () { // stats details are closed source } -#[cfg(not(feature = "private"))] -#[derive(Debug, sqlx::FromRow, serde::Serialize)] -struct JobsUsage { - language: Option, - total_duration: i64, - count: i64, -} - #[cfg(not(feature = "private"))] pub enum SendStatsReason { Manual, diff --git a/backend/windmill-queue/src/jobs.rs b/backend/windmill-queue/src/jobs.rs index ac5120dfab..8ac7641816 100644 --- a/backend/windmill-queue/src/jobs.rs +++ b/backend/windmill-queue/src/jobs.rs @@ -21,7 +21,7 @@ use serde::Deserialize; use serde::{ser::SerializeMap, Serialize}; use serde_json::{json, value::RawValue}; use sqlx::PgExecutor; -use sqlx::{types::Json, FromRow, Pool, Postgres, Transaction}; +use sqlx::{types::Json, Pool, Postgres, Transaction}; use tokio::{sync::RwLock, time::sleep}; use ulid::Ulid; use uuid::Uuid; @@ -1543,12 +1543,6 @@ pub async fn handle_maybe_scheduled_job<'c>( } } -#[derive(Clone, Serialize, FromRow)] -struct CompletedJobSubset { - success: bool, - result: Option>>, - started_at: chrono::DateTime, -} #[cfg(feature = "enterprise")] async fn apply_schedule_handlers<'a, 'c, T: Serialize + Send + Sync>(