sot / mica

Microscope on Chandra aspect
https://sot.github.io/mica
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Avoid vv obspar race condition #257

Closed jeanconn closed 3 years ago

jeanconn commented 3 years ago

Description

Avoid vv obspar race condition.

With repro going on, we're getting a few V&V hiccups. It looks like most are due to asp L1 products getting ingested in mica before obspars are available. These PR changes 1) set the obspar ingest to run after the L1 ingest in the task schedule, 2) make the processing more robust to a missing obspar (log and skip).

Testing

I did not put time into creating a good functional test. As this is a race condition situation, one would need to construct a state in the various databases matching the mismatch seen at the time of the V&V hiccup. Given the benign nature of the changes, I think testing that this fixes the problem by just running the code in flight (and looking for warnings) makes sense.

Fixes #