Myfy Background Tasks Module
Implements robust SQL-based background job processing and task worker management for Python applications.
The Myfy TasksModule provides a comprehensive solution for handling asynchronous background jobs with automatic retries, dependency injection, and SQL-based queue management. It enables developers to define tasks using simple decorators, dispatch them with priorities and delays, and monitor execution progress via a dedicated TaskContext. Ideal for long-running processes like email delivery, data synchronization, or heavy computational tasks, it integrates seamlessly into the Myfy framework ecosystem to ensure reliable, scalable job execution with full observability into task states.
주요 기능
01Real-time progress reporting and status updates via TaskContext
02Dedicated CLI worker command with configurable concurrency and polling
0383 GitHub stars
04SQL-based task queuing with automatic retry logic and custom error handling
05Flexible dispatching with support for task priorities, delays, and timeouts
06Seamless Dependency Injection (DI) for task-scoped services and sessions
사용 사례
01Implementing reliable third-party API integrations that require persistence and retries
02Offloading high-volume asynchronous operations like automated email notifications
03Processing long-running data migrations or user imports with real-time progress tracking