mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
remove warnings
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -242,15 +242,6 @@ pub struct WorkspaceSettings {
|
||||
pub git_app_installations: Option<serde_json::Value>,
|
||||
}
|
||||
|
||||
#[derive(FromRow, Serialize, Debug)]
|
||||
pub struct Usage {
|
||||
pub workspace_id: String,
|
||||
pub slack_team_id: Option<String>,
|
||||
pub slack_name: Option<String>,
|
||||
pub slack_command_script: Option<String>,
|
||||
pub slack_email: String,
|
||||
}
|
||||
|
||||
#[derive(sqlx::Type, Serialize, Deserialize, Debug)]
|
||||
#[sqlx(type_name = "WORKSPACE_KEY_KIND", rename_all = "lowercase")]
|
||||
pub enum WorkspaceKeyKind {
|
||||
|
||||
@@ -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<ScriptLang>,
|
||||
total_duration: i64,
|
||||
count: i64,
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "private"))]
|
||||
pub enum SendStatsReason {
|
||||
Manual,
|
||||
|
||||
@@ -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<sqlx::types::Json<Box<RawValue>>>,
|
||||
started_at: chrono::DateTime<chrono::Utc>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "enterprise")]
|
||||
async fn apply_schedule_handlers<'a, 'c, T: Serialize + Send + Sync>(
|
||||
|
||||
Reference in New Issue
Block a user