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: refresh dynamic metadata tokens periodically #64

Merged
merged 8 commits into from
Jan 20, 2023

Conversation

rafaelcr
Copy link
Collaborator

@rafaelcr rafaelcr commented Dec 20, 2022

Refresh metadata for tokens marked as dynamic from SIP-019 periodically. The default time period can be specified via an ENV var.

  • Use TTL values to refresh for tokens that have them
  • Use the new chain_tip table in BlockchainImporter to pick up where we left off upon service restart

Fixes #7

@vercel
Copy link

vercel bot commented Dec 20, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
token-metadata-service ✅ Ready (Inspect) Visit Preview Dec 20, 2022 at 3:38PM (UTC)

@rafaelcr rafaelcr marked this pull request as ready for review January 20, 2023 18:25
@rafaelcr rafaelcr merged commit e1c0882 into develop Jan 20, 2023
@rafaelcr rafaelcr deleted the feat/dynamic-metadata branch January 20, 2023 19:47
blockstack-devops pushed a commit that referenced this pull request Jan 26, 2023
## [0.1.0-beta.1](v0.0.1...v0.1.0-beta.1) (2023-01-26)

### Features

* add server version to status endpoint and rendered docs ([#76](#76)) ([ba2f7de](ba2f7de))
* import sip-019 notifications during boot ([#81](#81)) ([6c28037](6c28037))
* refresh dynamic metadata tokens periodically ([#64](#64)) ([e1c0882](e1c0882))

### Bug Fixes

* contract log queries ([4bd2812](4bd2812))
* improve SIGINT handling for queued jobs ([e16fcd5](e16fcd5))
* jsonb type interpretation on endpoints ([5985c80](5985c80))
* jsonb value insertions ([8dff8a6](8dff8a6))
* manage additional timeout errors on metadata fetch ([e658e1d](e658e1d))
* move from fetch to request to fix ENOBUFS ([9b26439](9b26439))
* persist http agent for metadata fetches ([a30641a](a30641a))
* retry 429 and gateway timeouts ([08cdce6](08cdce6))
* sft_mint detection ([53673b2](53673b2))
* shut down queue at the end of sequence ([e268c79](e268c79))
* uintcv creation ([780b160](780b160))
* update_at jobs on status or retry change ([c16025f](c16025f))
@blockstack-devops
Copy link

🎉 This PR is included in version 0.1.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

blockstack-devops pushed a commit that referenced this pull request Feb 22, 2023
## [0.1.0](v0.0.1...v0.1.0) (2023-02-22)

### Features

* add server version to status endpoint and rendered docs ([#76](#76)) ([ba2f7de](ba2f7de))
* enable run modes ([#116](#116)) ([c7a9c55](c7a9c55))
* import sip-019 notifications during boot ([#81](#81)) ([6c28037](6c28037))
* refresh dynamic metadata tokens periodically ([#64](#64)) ([e1c0882](e1c0882))
* throttle requests to rate limited domains ([#97](#97)) ([5b75060](5b75060))

### Bug Fixes

* add `/metadata/v1` prefix to all routes ([#100](#100)) ([a11d4be](a11d4be))
* add cache-control, remove cache for error responses ([#114](#114)) ([e03caf8](e03caf8))
* contract log queries ([4bd2812](4bd2812))
* display cached image in metadata responses ([#104](#104)) ([156e9e2](156e9e2))
* dockerfile CMD path ([#91](#91)) ([de60556](de60556))
* enclose response etag in double quotes ([#113](#113)) ([2b77cfe](2b77cfe))
* etag cache calculation with url prefix ([#111](#111)) ([f872f93](f872f93))
* follow redirects when fetching metadata ([#109](#109)) ([0ab2fbb](0ab2fbb))
* generate git info on docker build ([#93](#93)) ([9808b47](9808b47))
* handle pg disconnections and transaction management ([#92](#92)) ([201d813](201d813))
* ignore invalid ssl certs for metadata fetch ([#107](#107)) ([46e184c](46e184c))
* ignore ts type maps when migrating ([#95](#95)) ([b92b9d8](b92b9d8))
* improve SIGINT handling for queued jobs ([e16fcd5](e16fcd5))
* jsonb type interpretation on endpoints ([5985c80](5985c80))
* jsonb value insertions ([8dff8a6](8dff8a6))
* make importer wait for API height to catch up if it's behind ([#101](#101)) ([930cce3](930cce3))
* manage additional timeout errors on metadata fetch ([e658e1d](e658e1d))
* move from fetch to request to fix ENOBUFS ([9b26439](9b26439))
* persist http agent for metadata fetches ([a30641a](a30641a))
* retry 429 and gateway timeouts ([08cdce6](08cdce6))
* sft_mint detection ([53673b2](53673b2))
* shut down queue at the end of sequence ([e268c79](e268c79))
* support JSON5 metadata strings ([#106](#106)) ([d19634f](d19634f))
* uintcv creation ([780b160](780b160))
* update_at jobs on status or retry change ([c16025f](c16025f))
@blockstack-devops
Copy link

🎉 This PR is included in version 0.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support metadata update modes
2 participants