The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
add model CronJob
Ishaan Jaffea93a09b7a46
diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prismaindex 9269e890142..0df675fd841 100644--- a/litellm/proxy/schema.prisma+++ b/litellm/proxy/schema.prisma@@ -336,3 +336,18 @@ model LiteLLM_DailyUserSpend {@@index([api_key])@@index([model])}+++// Track the status of cron jobs running. Only allow one pod to run the job at a time+model CronJob {+ id String @id @default(cuid()) // Unique ID for the record+ podId String // Unique identifier for the pod acting as the leader+ status JobStatus @default(INACTIVE) // Status of the cron job (active or inactive)+ lastUpdated DateTime @default(now()) // Timestamp for the last update of the cron job record+ ttl DateTime // Time when the leader's lease expires+}++enum JobStatus {+ ACTIVE+ INACTIVE+}diff --git a/schema.prisma b/schema.prismaindex 3312b26354d..5d1535d2ff3 100644--- a/schema.prisma+++ b/schema.prisma@@ -335,3 +335,18 @@ model LiteLLM_DailyUserSpend {@@index([api_key])@@index([model])}+++// Track the status of cron jobs running. Only allow one pod to run the job at a time+model CronJob {+ id String @id @default(cuid()) // Unique ID for the record+ podId String // Unique identifier for the pod acting as the leader+ status JobStatus @default(INACTIVE) // Status of the cron job (active or inactive)+ lastUpdated DateTime @default(now()) // Timestamp for the last update of the cron job record+ ttl DateTime // Time when the leader's lease expires+}++enum JobStatus {+ ACTIVE+ INACTIVE+}