Repository navigation
Feat/jobs taskiq - #73
Merged
Merged
Conversation
…egration - Added `worker.py` to handle worker startup and shutdown, including task importing and broker configuration. - Enhanced `GraphConfig` to parse worker configuration from `10xgraph.json`. - Created unit tests for worker configuration, context management, and middleware functionality. - Developed integration tests for Redis broker functionality, including idle queue reclaim and lease renewal. - Established a testing environment with fixtures for task execution and state management. - Implemented error handling and logging for task execution and middleware processes.
- Removed unused imports and fixtures from unit tests in `conftest.py`. - Added new unit tests for worker commands in `test_commands.py` to validate argument parsing and environment setup. - Enhanced configuration validation in `test_config.py` to support new broker types and ensure proper error handling for unsupported configurations. - Updated task scheduling tests in `test_context.py` to streamline the enqueueing process and remove deprecated functionality. - Introduced new route tests in `test_routes.py` to cover task management endpoints with authorization checks. - Cleaned up worker tests in `test_worker.py` by removing obsolete tests related to task importing and checkpointer setup. - Added comprehensive validation for worker configuration fields in `test_config_editor.py` to ensure correct schema definitions and error messages.
…and integrate OpenTelemetry support
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background tasks on TaskIQ
Adds durable background tasks to 10xgraph-api as a thin layer over TaskIQ: we own one broker, wire monitoring, auth and the run config, and add
worker/schedulercommands and HTTP routes. TaskIQ does the queueing, retries, results and scheduling.Developer API