Skip to content

Commit

Permalink
fix: cleanup bundle report in finally (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-sentry authored May 23, 2024
1 parent 420237c commit e81bada
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/bundle_analysis_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ def process_impl_within_lock(
self.retry(max_retries=5, countdown=20)
result.update_upload()

if result.bundle_report:
result.bundle_report.cleanup()

processing_results.append(result.as_dict())
except (CeleryError, SoftTimeLimitExceeded, SQLAlchemyError):
raise
Expand All @@ -153,6 +150,9 @@ def process_impl_within_lock(
upload.state_id = UploadState.ERROR.db_id
upload.state = "error"
raise
finally:
if result.bundle_report:
result.bundle_report.cleanup()

log.info(
"Finished bundle analysis processor",
Expand Down

0 comments on commit e81bada

Please sign in to comment.