-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor the listener to allow for being centralized #394
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #394 +/- ##
==========================================
+ Coverage 75.70% 76.87% +1.16%
==========================================
Files 35 35
Lines 5932 6123 +191
==========================================
+ Hits 4491 4707 +216
+ Misses 1441 1416 -25 ☔ View full report in Codecov by Sentry. |
This isn't particularly clean, but the delay is only 0.1s so it should be acceptable.
Two changes: - Access the environment variable override in the function so we can set it at runtime. - Take in an integer proposal number and apply formatting internally.
This allows them to specify which DAMNIT environment to use for processing runs, independently of what environment the processing is triggered from.
5d63d61
to
9983abc
Compare
Important changes: - The listener now supports triggering jobs for either all proposals or a single one. - In addition to the 'official' databases under `usr/Shared/amore`, it's possible to add unofficial databases at any location. - The GUI now only initializes the database and assumes a listener is already running.
For some reason it was still running afterwards, which would cause segfaults.
Amusingly, this will otherwise semi-randomly cause segfaults when... something... gets garbage collected before it should be.
9983abc
to
b5a7ba9
Compare
I extended the tests and added some docs here: https://damnit--394.org.readthedocs.build/en/394/internals/#the-listener |
Hmph, just realized that the limit on the number of concurrent jobs should be per-proposal rather than global. Will fix that. |
Important changes:
usr/Shared/amore
, it'spossible to add unofficial databases at any location.
running.
I've tried to keep the commits atomic so I would suggest reviewing them one-by-one. @RobertRosca, @CammilleCC, I believe this is ready to be tested.