File size: 709 Bytes
7b2787b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
"""
Configuration settings for the Workflow Engine.
"""
from pydantic_settings import BaseSettings
from typing import Optional
class Settings(BaseSettings):
"""Application settings with environment variable support."""
# Application
APP_NAME: str = "FlowGraph"
APP_VERSION: str = "1.0.0"
DEBUG: bool = True
# Server
HOST: str = "0.0.0.0"
PORT: int = 8000
# Workflow Engine
MAX_ITERATIONS: int = 100 # Default max loop iterations
EXECUTION_TIMEOUT: int = 300 # Seconds
# Logging
LOG_LEVEL: str = "INFO"
class Config:
env_file = ".env"
case_sensitive = True
# Global settings instance
settings = Settings()
|