-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add a separate queue for querying PACS #503
Conversation
Also add a PixlOutOfHoursError that is raised by the pacs queue when out of hours
…PrimaryArchiveError error The consumer then sends the message to the secondary imaging queue. Only process messages in the secondary imaging queue outside of working hours. During working hours, re-queue the message
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #503 +/- ##
==========================================
- Coverage 87.78% 87.31% -0.48%
==========================================
Files 76 76
Lines 3415 3438 +23
==========================================
+ Hits 2998 3002 +4
- Misses 417 436 +19 ☔ View full report in Codecov by Sentry. |
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.
Some of this may be outdated because I thought I submitted 🤦🏻
Oh also its worth checking the checklist in https://github.com/SAFEHR-data/the-rolling-skeleton/issues/416 to make sure that we've covered all of that |
…wo imaging api queues
…cuase the study is not in the VNA
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.
Looking good, would be nice to do set off a run overnight tonight to check that it successfuly runs through both queues still (no need to take volumes down)
"imaging-primary": "imaging_api", | ||
"imaging-secondary": "imaging_api", |
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.
oooh this is nice
# We don't want to modify the queues we're populating, but if we're populating imaging-primary | ||
# we also need to wait for imaging-secondary to be empty | ||
queues_to_count = queues_to_populate.copy() | ||
if "imaging-primary" in queues_to_populate and "imaging-secondary" not in queues_to_populate: | ||
queues_to_count.append("imaging-secondary") |
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.
could make just make this a set and then add it to it without checking?
yeah good shout - I've set it running on |
Patch coverage is a bit low but it's mostly on hard to test areas (we're mocking a lot of these parts of the code during tests), so hopefully it's okay to merge as is |
Description
Fixes https://github.com/SAFEHR-data/the-rolling-skeleton/issues/416
_imaging_secondary
) for querying PACSimaging
queue will only query the VNA. If a study is not available in the VNA, the corresponding message will be published to the new secondary imaging queueType of change
Please delete options accordingly to the description.
Suggested Checklist
main
branch.UCLH-Foundtry/arc-dev
squash and merge