Skip to content

Add foreign_key_constraint to Submission to convert to error instead of crashing #239

Open
@indocomsoft

Description

@indocomsoft

In find_or_create_submission

Due to race condition when the find_or_create_submission is called in very fast succession. Only one of the invocation will succeed in creating a new row in the db, the rest will fail with unique constraint error.

Relevant error:
image
image

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingminorless important than important but more than nice-to-have

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions