Skip to content

Commit

Permalink
Fix failure email
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Mar 4, 2024
1 parent 53ca511 commit aaab20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readux_ingest_ecds/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def on_failure(self, exc, task_id, args, kwargs, einfo):
"""
ingest = Local.objects.get(id=args[0])
LOGGER.info(f'FAIL!!! {ingest.manifest.pid}')
send_email_on_failure(bundle=ingest.bundle.filename, creator=ingest.creator, exception=str(exc))
send_email_on_failure(bundle=ingest.bundle.file_name, creator=ingest.creator, exception=str(exc))
ingest.delete()

app = Celery('readux_ingest_ecds', result_extended=True)
Expand Down

0 comments on commit aaab20e

Please sign in to comment.