Skip to content

Commit

Permalink
Merge pull request #59 from lsst-dm/tickets/DM-46690
Browse files Browse the repository at this point in the history
DM-46690: Fix one-by-one ingestion in exception handling.
  • Loading branch information
ktlim authored Oct 7, 2024
2 parents 448a735 + 6a8a7a3 commit 77c5e74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile.ingest
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@

# Dockerfile for ingest service.

ARG RUBINENV_VERSION=8.0.0
FROM lsstsqre/newinstall:${RUBINENV_VERSION}
ARG RUBINENV_VERSION=9.0.0
FROM ghcr.io/lsst-dm/docker-newinstall:9-latest-${RUBINENV_VERSION}
ARG OBS_LSST_VERSION
ENV OBS_LSST_VERSION=${OBS_LSST_VERSION:-w_2024_24}
ENV OBS_LSST_VERSION=${OBS_LSST_VERSION:-w_2024_40}
USER lsst
RUN source loadLSST.bash && mamba install redis-py rucio-clients
RUN source loadLSST.bash && mamba install redis-py
RUN source loadLSST.bash && eups distrib install -t "${OBS_LSST_VERSION}" lsst_obs
COPY src/ingest.py src/info.py src/utils.py src/rucio_interface.py ./ingest/
# Environment variables that must be set:
Expand Down
2 changes: 1 addition & 1 deletion src/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def main():
refs = []
for resource in resources:
try:
refs.append(ingester.run([resource]))
refs.extend(ingester.run([resource]))
except Exception:
logger.exception("Error while ingesting %s", resource)
info = Info.from_path(resource.geturl())
Expand Down

0 comments on commit 77c5e74

Please sign in to comment.