Skip to content
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

Robustify T2DocView config resolution in T3 #205

Merged
merged 4 commits into from
Mar 8, 2023
Merged

Conversation

jvansanten
Copy link
Contributor

@jvansanten jvansanten commented Mar 1, 2023

Fix bugs that caused T2DocView.config to always be None at T3 if any of the following were true:

  • config ids came from IngestionDirectives hashed in a different DevAmpelContext
  • views were provided by T3SimpleStager with a single unit. For multiple units, T3ThreadedStager resolved the configs correctly.
  • the hash value was negative (fixed in ampel-interface 0.8.4)

This allows e.g.  dynamically registered configs to be resolved in
T2DocView even if the AlertConsumer task is skipped.
When a unit raises an exception, the generator returned by
ThreadedViewGenerator.__init__ would exit instantly, causing the
wrapped JoinableQueue to...never join.  Wrap in a try/finally block
to ensure that the queue is always consumed.
@jvansanten jvansanten merged commit 162f049 into master Mar 8, 2023
@jvansanten jvansanten deleted the load-old-confids branch March 8, 2023 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant