holaplex / indexer

Index Solana data using a Geyser plugin (downstream service cluster)
https://holaplex.com
GNU Affero General Public License v3.0
162 stars 38 forks source link

Non-MCC Collections on Kubes Cron #739

Closed kespinola closed 1 year ago

kespinola commented 2 years ago

Goal

Non MCC collections are recomputed every hour.

Requirements

Environments

mpwsh commented 2 years ago

Got queries from @imabdulbasit.

Cron job for Collections volume

Cron job for ME Collections.

Starting to work on the cronjobs.

mpwsh commented 2 years ago

Cronjobs added to kubes repo (dev) after merging #744 #745 image

All cronjob manifests can be found here alongside the script that downloads the migration and executes them with psql

Will spin up the same cronjob manifests after merging main <- dev

To create new migration cronjob, you can duplicate any of the existing ones in the indexer/app/jobs folder and change its name and the following env vars.

env:
- name: REPO_URL
  value: https://github.com/holaplex/indexer
- name: GIT_BRANCH
  value: dev
- name: REPO_PATH
  value: crates/core/migrations/2022-09-12-154321_update_1d_collection_volume/up.sql

After pushing the new file to the kubes repo, argoCD will take care of deploying it

kespinola commented 2 years ago

done. ty @mpwsh

kespinola commented 1 year ago

done.