Skip to content

Conversation

kfindeisen
Copy link
Member

@kfindeisen kfindeisen commented Jun 15, 2023

This PR adds some logic that lets us skip Prompt Processing execution for specific types of visits. This is mainly intended for spectroscopic observations taken with LATISS.

The code now tests for an applicable pipeline as soon as it parses the
next_visit message. If there is no pipeline, this is treated as a
semantic error by the client (i.e., the fanout service).
This change makes it possible to program the Prompt Processing service
to ignore visits that we either can't or don't want to process.
The time zone used to datestamp runs was changed in #68, but the tests
were never updated to match. This caused failures when running the
tests between 0:00 and 12:00 UTC.
The survey is generally more human-readable than the group ID. Since
commissioning runs mix different kinds of observations (represented as
different surveys), it's a valuable piece of context for understanding
what kind of visit is being processed.
Copy link
Collaborator

@dspeck1 dspeck1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Only comment is duplicate of other review in slaclab repo around if it appropriate to move to structured config file instead of space delimited file and regex parsing? If that is normal convention that is fine.

@kfindeisen kfindeisen merged commit 1ca7232 into main Jun 16, 2023
@kfindeisen kfindeisen deleted the tickets/DM-39678 branch June 16, 2023 23:02
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.

2 participants