Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md


web3.storage

The cron jobs for housekeeping ✨

Resist chaos! Periodically update the db with exciting new facts about the size of pins and anything else that doesn't need to be on the critical path.

Notify users when they are approaching or exceeding their storage quota, and notify admins of any users who are exceeding their quota.

Getting started

Ensure you have all the dependencies, by running npm i in the parent project.

The following jobs are available:

pins

Verify that the following are set in the .env file in root of the project monorepo.

Heartbeat split by environments, runs every hour.

ENV=dev

PG_REST_URL=http://localhost:3000
PG_REST_JWT=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoicG9zdGdyZXMifQ.oM0SXF31Vs1nfwCaDxjlczE237KcNKhTpKEYxMX-jEU
PG_CONNECTION=postgres://postgres:postgres@127.0.0.1:5432/postgres

DAG_CARGO_HOST=127.0.0.1
DAG_CARGO_DATABASE=postgres
DAG_CARGO_USER=postgres
DAG_CARGO_PASSWORD=postgres

CLUSTER_API_URL=http://127.0.0.1:9094/
CLUSTER_IPFS_PROXY_API_URL=http://127.0.0.1:9095/api/v0/

You also need to have:

Run the job:

npm run start:pins