-
Notifications
You must be signed in to change notification settings - Fork 1
Canary #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Canary #47
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
5f7ebd5
refactor: add debug prints
antidodo df0b2ac
refactor: add debug prints
antidodo aa0f91e
feat: propagate partner node statuses and log stop endpoint
Nightknight3000 4a48ecf
fix: set node ids to str
Nightknight3000 e9b0387
fix: add control print for nod status update to analysis
Nightknight3000 e4303e1
refactor: add error handling for partner node status updates
antidodo 28ec410
refactor: remove debug prints
antidodo e002f0f
Merge branch 'main' into canary
antidodo 4cfae06
Merge branch 'main' into canary
Nightknight3000 9d1a32a
feat: implement internal po logging
Nightknight3000 1cbc574
fix: error in custom log level
Nightknight3000 9b0d775
fix: numeric values of custom levels
Nightknight3000 5b29b04
feat: add JSON formatter for structured logging in po_logging.py
antidodo 7b4867e
fix: add delay in status loop to prevent busy waiting
antidodo 0a25132
fix: disable logging configuration in uvicorn so its also uses the de…
antidodo 0b53bac
fix: update dependencies to latest versions in pyproject.toml
antidodo ed02e91
test: add unit tests
antidodo 5520628
fix: escape dollar sign change because of deprecation
antidodo b848730
fix: use environment variable for NGINX image version with a default …
antidodo a119915
fix: enhance code base
antidodo fd3b37d
fix: update test cases for analysis and log entities to include new p…
antidodo a1f92ea
fix: improve pod log retrieval logic and validate UUIDs in analysis c…
antidodo 11cc3f3
fix: optimize resource retrieval by removing unnecessary list convers…
antidodo d6ff04b
refactor: validate hub client init params and remove unused data sour…
antidodo 72bd48d
docs: enhance docstrings across multiple modules for clarity and comp…
antidodo e88ad1d
fix: avoid failure on slow start
Nightknight3000 4bb19e1
fix: zombie creation after stuck state
Nightknight3000 9be9a4a
fix: consider firmly stuck analyses as failed
Nightknight3000 4d0e318
feat: bump po version to 0.5.0
Nightknight3000 435b57c
Merge branch 'refs/heads/main' into canary
antidodo a2ba75a
feat: ensure connectivity with hub if necessary in api endpoints
Nightknight3000 44519b5
feat: cleanup of running analyses deleted at hub
Nightknight3000 a8b7b1b
refactor: reorganize load functions in main
Nightknight3000 a844d63
refactor: improve status loop logging
Nightknight3000 65cab2c
fix: allow stopped as end status
Nightknight3000 d4057ae
feat: unsubscribe analyses from message-broker
Nightknight3000 6117d9f
fix: regenerate tokens during analysis stop process
Nightknight3000 1477caf
refactor: imports and constant
Nightknight3000 239f24e
feat: delete malformed analyses and apply clean up at loop end
Nightknight3000 2b5174f
refactor: init hub client naming
Nightknight3000 570f935
refactor: add status control prints
Nightknight3000 e8d6167
refactor: set po logs to debug mode
Nightknight3000 55bdb42
refactor: remove debug logs
Nightknight3000 cdb30c7
fix: correctly map internal stopped status
Nightknight3000 250b8c8
chore: update dependencies to latest versions in poetry.lock
antidodo c74a2e0
fix: temporarily disable analysis stop functionality for debugging
antidodo c349dcc
fix: comment out resource cleanup for debugging purposes
antidodo 3d8385e
fix: raise condition of db model update after deployment, triggering …
antidodo 038c238
refactor: ident
antidodo 8fc9c4b
fix: update pod_ids
antidodo c983c61
fix: replace hub cleanup criteria with id instead of status
antidodo b09f8f3
fix: comment out hub validation for debugging purposes
antidodo 293bb79
fix: clean_up_the_rest removed for debuging
antidodo 672e864
refactor: add looging for clean up the rest
antidodo 61dc5fe
fix: remove none cases log
antidodo 1485ce2
fix: remove none cases log
antidodo 19163e6
fix: extract analysis id from deployment name fix
antidodo fbbbc24
fix: reintroduce cleanup in status loop
antidodo 4c6af92
refactor: ident
antidodo 8d00023
fix: update Tests
antidodo 6fdd8b2
feat: version bump to 0.5.5
antidodo 56bec44
feat: address code rabbit review
antidodo d34319a
fix: update Tests
antidodo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleanup_callforwardsself.hub_clienteven when it isNone.When
_set_node_id_and_hub_client(max_attempts=5)fails to resolve a client,self.hub_clientstaysNoneand is passed tocleanup(...). Combined with the destructive behavior inclean_up_the_rest(see comment insrc/resources/utils.py), this means aDELETE /po/cleanup/...call during a Hub outage will run zombie cleanup with hub validation disabled (only a warning is logged). Consider failing fast with a 503 here whencleanup_typeis'all'or'zombies'andhub_client is None, so an operator-triggered cleanup doesn't quietly skip the safety net.🤖 Prompt for AI Agents