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

feat: pinata pin sync #145

Merged
merged 6 commits into from
May 26, 2021
Merged

feat: pinata pin sync #145

merged 6 commits into from
May 26, 2021

Conversation

alanshaw
Copy link
Contributor

@alanshaw alanshaw commented May 21, 2021

  1. A KV store (PINATA_QUEUE) that new CIDs for pinning to pinata are placed in.
  2. A cron job that reads from the queue and submits to Pinata.
  3. A migration that adds all existing pinned CIDs to the queue to ensure they are pinned remotely.
  4. Code changes to add to the PINATA_QUEUE instead of calling pinata.pinByHash

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 21, 2021

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 28d0f18
Status: ✅  Deploy successful!
Preview URL: https://9b91aa77.nft-storage.pages.dev

View logs

@alanshaw alanshaw force-pushed the feat/pinata-pin-sync branch from 2e8efa2 to fec1e4a Compare May 21, 2021 17:48
@alanshaw alanshaw marked this pull request as ready for review May 21, 2021 17:54
@alanshaw alanshaw requested review from hugomrdias and Gozala May 25, 2021 13:08
@alanshaw
Copy link
Contributor Author

I'm going to merge this because we really need to start ensuring our pins are backed up to Pinata. I have run the migration so the queue is ready to be processed by the cron job.

@alanshaw alanshaw merged commit d071ca4 into main May 26, 2021
@alanshaw alanshaw deleted the feat/pinata-pin-sync branch May 26, 2021 11:50
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.

1 participant