How pravaragarwal/automation-ops-platform works
The product is a FastAPI service for managing automation scripts and asynchronously running them while persisting lifecycle state and captured output. The principal workflow is: a client creates a job, requests execution, receives a pending execution ID, and later queries its status and results. The graph includes job management, execution tracking, persistence, validation, and health checking. Relationships are based on the README and provided source excerpts; unsampled components are not inferred beyond documented behavior.
Main entry points: executions.py Execution Endpoints · database.py Database Sessions · main.py FastAPI Application · jobs.py Job Endpoints
Components 12
HTTP API
- FastAPI Application
app/main.py - Job Endpoints
app/routers/jobs.py - Execution Endpoints
app/routers/executions.py - Health Endpoint
app/routers/health.py - Request Responses
app/schemas.py
Jobs And State
- Job And Execution Models
app/models.py - Database Sessions
app/database.py - SQLite Job Store
Execution Runtime
- Execution Worker
app/services/executor.py - Python Or Bash Process
Application Setup
- Settings And Logging
app/config.py
Other components
- API Client
Connections 22
- API Client → FastAPI Application: sends HTTP
README.md - FastAPI Application → Job Endpoints: registers routes
app/main.py - FastAPI Application → Execution Endpoints: registers routes
app/main.py - FastAPI Application → Health Endpoint: registers routes
app/main.py - FastAPI Application → Database Sessions: creates tables
app/main.py - Job Endpoints → Request Responses: validates responses
app/routers/jobs.py - Execution Endpoints → Request Responses: validates responses
app/routers/executions.py - Request Responses → Job And Execution Models: maps ORM data
app/schemas.py - Job Endpoints → Job And Execution Models: queries and mutates
app/routers/jobs.py - Job Endpoints → Database Sessions: gets sessions
app/routers/jobs.py - Execution Endpoints → Job And Execution Models: queries and creates
app/routers/executions.py - Execution Endpoints → Database Sessions: gets sessions
app/routers/executions.py - Execution Endpoints → Execution Worker: schedules task
app/routers/executions.py - Job And Execution Models → Database Sessions: uses ORM base
app/models.py - Database Sessions → Settings And Logging: loads database URL
app/database.py - Database Sessions → SQLite Job Store: connects to
README.md - Job Endpoints → SQLite Job Store: reads and writes jobs
app/routers/jobs.py - Execution Endpoints → SQLite Job Store: reads and writes executions
app/routers/executions.py - Execution Worker → Job And Execution Models: updates execution state
app/services/executor.py - Execution Worker → Python Or Bash Process: runs script
app/services/executor.py - Execution Worker → Settings And Logging: logs execution
app/services/executor.py - Execution Worker → SQLite Job Store: reads and saves results
app/services/executor.py