Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Prisma transaction timeout during map submission #1039

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

tsa96
Copy link
Member

@tsa96 tsa96 commented Sep 21, 2024

This was a case of me keeping a Prisma transaction open for the lifetime of several S3 requests. I've pulled out the S3 logic to run in a separate task that won't block the DB work.

Haven't written tests for this since I can't think of a reliable way to E2E test this and we'll test it out on staging tonight.

Closes #998

Checks

  • !! DONT IGNORE ME !! I have ran nx run db:create-migration <name> and committed the migration if I've made DB schema changes
  • I have included/updated tests where applicable (see Testing)
  • I have followed semantic commit messages e.g. feat: Add foo, chore: Update bar, etc...
  • My branch has a clear history of changes that can be easy to follow when being reviewed commit-by-commit
  • My branch is functionally complete; the only changes to be done will be those potentially requested in code review
  • All changes requested in review have been fixuped into my original commits

This was a case of me keeping a Prisma transaction open for the lifetime
of several S3 requests. I've pulled out the S3 logic to run in a
separate task that won't block the DB work.

Haven't written tests for this since I can't think of a reliable way to
E2E test this and we'll test it out on staging tonight.
@tsa96 tsa96 merged commit 4e1edb7 into main Sep 27, 2024
7 checks passed
@tsa96 tsa96 deleted the fix/map-sub-transaction-timeout branch September 27, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prisma transaction can expire during map submission
3 participants