таски готовы

This commit is contained in:
2026-02-07 12:42:32 +03:00
parent 0f16bab2b8
commit e6087bd3c1
9 changed files with 474 additions and 5 deletions

View File

@@ -1331,9 +1331,15 @@
- ƒ **get_tasks** (`Function`)
- 📝 Retrieves tasks with pagination and optional status filter.
- ƒ **get_task_logs** (`Function`)
- 📝 Retrieves logs for a specific task.
- 📝 Retrieves logs for a specific task with filtering and pagination.
- ƒ **get_task_log_stats** (`Function`)
- 📝 Returns log statistics (counts by level/source) for a task.
- ƒ **get_task_log_sources** (`Function`)
- 📝 Returns unique log sources for a task.
- ƒ **_add_log** (`Function`)
- 📝 Adds a log entry to a task and notifies subscribers.
- 📝 Adds a log entry to a task, buffers for persistence, and notifies subscribers.
- ƒ **_flush_logs** (`Function`)
- 📝 Flushes buffered logs to the database.
- ƒ **subscribe_logs** (`Function`)
- 📝 Subscribes to real-time logs for a task.
- ƒ **unsubscribe_logs** (`Function`)
@@ -1346,6 +1352,30 @@
- 📝 Resume a task that is awaiting input with provided passwords.
- ƒ **clear_tasks** (`Function`)
- 📝 Clears tasks based on status filter.
- 📦 **TaskLogPersistenceModule** (`Module`)
- <20> Handles the persistence of task logs in a dedicated database table.
- 🏗️ Layer: Core
- **TaskLogPersistenceService** (`Class`)
- 📝 Provides CRUD operations for task logs.
- ƒ **save_log** (`Function`)
- 📝 Saves a single log entry.
- ƒ **bulk_save** (`Function`)
- 📝 Performs batch insertion of log entries.
- ƒ **get_logs** (`Function`)
- 📝 Retrieves logs with filtering and pagination.
- ƒ **get_stats** (`Function`)
- 📝 Returns log counts by level and source.
- ƒ **delete_logs** (`Function`)
- 📝 Deletes all logs for a specific task.
- 📦 **TaskContextModule** (`Module`)
- 📝 Provides execution context and logging utilities to plugins.
- 🏗️ Layer: Core
- **TaskLogger** (`Class`)
- 📝 Per-task logger with source attribution.
- ƒ **with_source** (`Function`)
- 📝 Returns a new logger instance with a different source.
- **TaskContext** (`Class`)
- 📝 Container for task-specific resources (logger, config, etc.).
- 📦 **TaskManagerModels** (`Module`)
- 📝 Defines the data models and enumerations used by the Task Manager.
- 🏗️ Layer: Core