feat: add named durable job queues and worker observability - #4
Open
joaovitoriasilva wants to merge 11 commits into
Open
feat: add named durable job queues and worker observability#4joaovitoriasilva wants to merge 11 commits into
joaovitoriasilva wants to merge 11 commits into
Conversation
# Conflicts: # tests/test_retention_and_storage.py
- Introduced properties in JobRunner for worker ID, clock, and queues. - Improved handling of job completion and failure to log warnings on ownership loss. - Added async shutdown functionality to lifecycle management. - Enhanced worker telemetry to include metadata normalization and heartbeat management. - Implemented cursor pagination for worker summaries. - Updated tests to cover new features and ensure robustness against ownership loss scenarios. - Refactored job CRUD operations to include worker ID and attempt tracking. - Improved error handling and logging for job finalization processes.
… for platform integration
# Conflicts: # CHANGELOG.md # pyproject.toml # tests/test_migrations.py # uv.lock
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.
What does this PR do?
Adds named durable-job queues, selective and fair workers, and durable worker observability while preserving the existing
defaultqueue behavior.Key changes:
run_job_worker()entry point for standalone PostgreSQL workers.jasil.admin.defaultqueue value.Related issue
No related issue was provided. This work was requested and implemented directly.
Type of change
Check all that apply
Checklist
Notes for the reviewer
Design decisions:
Validation completed: