Feat/worker scheduler endpoints - #6
Merged
Merged
Conversation
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.
Summary
This pull request implements the core worker and scheduler architecture for the Flint job processing system. It introduces the
FlintWorkerfor job execution and theFlintSchedulerfor job dispatching and system maintenance. Additionally, a comprehensive v1 API has been added to provide full control and visibility into the system, including job management, worker monitoring, and real-time event streaming.Type of Change
Key Changes
FlintWorkerwhich handles:JobProcessor.FlintSchedulerwhich handles:jobs/: Full CRUD operations, job log retrieval, and status tracking.workers/: Management and monitoring of active worker nodes.dlq/: Endpoints to inspect and re-queue failed jobs from the Dead Letter Queue.sse/: Server-Sent Events endpoint for real-time system monitoring.settings/: Dynamic configuration updates.benchmark/: Performance testing suite for the job engine.docker-compose.ymlto support the full distributed architecture.benchmarkrunner for performance evaluation.AgingProcessto ensure fair job scheduling.Database Migrations
alembic/versions/).Testing Strategy
tests/integration/test_dlq.py.Checklist
uv.lockandpyproject.tomlare updated.docs/) has been updated if necessary.Screenshots / Console Logs
(Manual testing confirmed worker registration and job processing loops are functioning as expected.)