storacha / w3name

IPNS client and service for generating, updating, and tracking immutable names with signed updates
Other
45 stars 12 forks source link

feat: republish cron job #12

Closed adamalton closed 2 years ago

adamalton commented 2 years ago

This is a draft PR showing the work I've done so far in creating a proof-of-concept to show that we can successfully iterate over the Durable Object IDs and instantiate each object (see deployed version), and then based on that, the beginnings of a cron job to iterate over all the IPNS Durable Objects to republish them.

As per my notes on #5, we might abandon this approach and use DO alarms instead. But I've made the PR to show where I've got to so far, so someone else can continue from (or discard) this and continue this work if they get to it before I do.

adamalton commented 2 years ago

I'm closing this, as we're going to go with the Durable Objects alarms-based approach instead (see #14). But I'll leave the branch here, as we may well want to resurrect the code to iterate over all the Durable Objects at some point in the future.