Skip to content

Commit

Permalink
Refresh registry after running pipelines
Browse files Browse the repository at this point in the history
It was found that sometimes output products existed in the local
repo but were not transferred back to the central repo, because
the "safe type list" was outdated and had only types before any
processing (raw and calib). Refresh for the updated state.
  • Loading branch information
hsinfang committed Jan 24, 2024
1 parent c00d469 commit bedacc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/activator/middleware_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,9 @@ def run_pipeline(self, exposure_ids: set[int]) -> None:
raise NonRetriableError("APDB modified") from e
else:
raise
finally:
# Refresh so that registry queries know the processed products.
self.butler.registry.refresh()
break
else:
# TODO: a good place for a custom exception?
Expand Down

0 comments on commit bedacc8

Please sign in to comment.