Skip to content

Commit

Permalink
Merge pull request #173 from apriltuesday/EVA-3679
Browse files Browse the repository at this point in the history
EVA-3679: Update exit code for duplicate accession monitoring
  • Loading branch information
apriltuesday authored Oct 18, 2024
2 parents 031ef6f + 89a141c commit eda870c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion accession-monitoring/monitor_duplicate_accessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def report_duplicates_in_exported_accessions_file(mongo_connection_properties, c
if int(number_of_duplicate_accessions) > 0:
notify_by_email(mongo_connection_properties, collection_name, duplicates_output_filename,
number_of_duplicate_accessions, email_recipients)
return 1
# Use exit code 0 as scheduler will also send email on crash
return 0
else:
logger.info("NO duplicate accessions were found in the {0} collection in the {1} database at {2}..."
.format(collection_name, mongo_connection_properties["mongo_db"],
Expand Down

0 comments on commit eda870c

Please sign in to comment.