Skip to content

feat(cu): if reading messages and assignments are timing out with the SU, fallback to Arweave #1129

@twilson63

Description

@twilson63

If the cu is getting timeouts when trying to fetch Scheduler messages from the SU, fallback to one or more graphql indexers for Arweave.

The best way is to query for the Assignments requesting the next 100 nonce's

query {
  transactions(
   first: 100,
    tags: [
       { name: "Process", values: ["{PID}"] },
       { name: "Type", values: ["Assignment"] },
       { name: "Nonce", values: [...] }
    ]
  ) {
      edges {
          node {
               id
               tags
                 name
                 value
          }
      }
}

By using the Nonce you can get the next 100 results and then use the Message tag to get the message tags, and their content.

query (
   transactions(ids: [....], first: 100) {
      edges {
         node {
             id
             tags 
                name
                value
         }
     }
)

get data using http - GET https://arweave.net/{txId}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions