Skip to content

Commit

Permalink
Merge pull request #424 from Path-of-Modifiers/273-when-the-modifier_…
Browse files Browse the repository at this point in the history
…data_deposit-runs-exception-retrieve-data-runs-anyway

273 Added exit and exit message to prestart script backend retrieval
  • Loading branch information
bogadisa authored Sep 2, 2024
2 parents 578e99a + a32dd41 commit cf9c82f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/backend_data_retrieval/data_retrieval/prestart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
python dataretrieval_pre_start.py

# Create initial data in DB
python modifier_data_deposit/deposit_modifier_data.py
if python modifier_data_deposit/deposit_modifier_data.py; then
echo "Data modifier deposit successful. Continuing..."
else
echo "Data modifier deposit failed. Exiting..."
exit 1
fi

while true; do
python external_data_retrieval/main.py
Expand Down

0 comments on commit cf9c82f

Please sign in to comment.