Skip to content

Commit

Permalink
[Crash Upload] Commit minidump info before decode_task
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskr97 committed Apr 25, 2022
1 parent 0228893 commit fa14c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crashserver/server/helpers/crash_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def minidump_upload(session, project_id: str, annotations: dict, minidump_file:
for key, value in annotations.items():
new_dump.annotations.append(Annotation(key=key, value=value))

new_dump.decode_task()
session.commit()
new_dump.decode_task()
logger.info(f"Minidump received [{new_dump.id}] for project [{project_id}] - [{flask.request.remote_addr}] - [{len(attachments)} attachments]")

return flask.make_response({"status": "success", "id": str(new_dump.id)}, 200)

0 comments on commit fa14c07

Please sign in to comment.