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

Metdata JSON Worker #228

Merged
merged 3 commits into from
Sep 28, 2023
Merged

Metdata JSON Worker #228

merged 3 commits into from
Sep 28, 2023

Conversation

kespinola
Copy link
Contributor

@kespinola kespinola commented Sep 18, 2023

Goal

Uploading of any metadata json is done in the background as the first step in the mint creation processes.

Changes

  • Create generic worker and job queue system using redis and postgres for persistence
  • Metadata JSON upload task uploads MetadataJsonInput to IPSF and based on caller continues the creation flow
  • Make use of db transactions to ensure atomic inserts or updates of records related to a mutation
  • Retry uploads in case of failure
  • Trigger failure flow for the mint if uploads exceeds retry limit allowing the user to retry

api/src/mutations/mint.rs Outdated Show resolved Hide resolved
@kespinola kespinola linked an issue Sep 26, 2023 that may be closed by this pull request
4 tasks
…ata json upload job queue. also modify these mutations to use transactions and re-organize structure of mutations to make more readable.
@kespinola kespinola marked this pull request as ready for review September 28, 2023 15:11
@kespinola kespinola merged commit cbad146 into main Sep 28, 2023
4 checks passed
@kespinola kespinola deleted the espi/metadat-json-worker branch September 28, 2023 15:11
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.

Background Uploads of Metadata JSON
1 participant