RSS3-Network / Node

In the vast RSS3 Network, the RSS3 Node delivers Open Information with efficiency, it is a steadfast cruiser in the byte-filled sea.
MIT License
22 stars 3 forks source link

refactor!: separate worker from component #372

Closed brucexc closed 3 months ago

brucexc commented 4 months ago

Summary

  1. add rsshub as a worker
  2. add related content about the rsshub worker in the /networks API
  3. add resource estimates for the Farcaster worker

The return structure of the /workers_status API has undergone a destructive change

before

{
  "data": [
    {
      "network": "savm",
      "worker": "core",
      "tags": null,
      "platform": "Unknown",
      "status": "Ready"
    }
  ]
}

after

{
  "data": {
    "decentralized": [
      {
        "network": "ethereum",
        "worker": "core",
        "tags": null,
        "platform": "Unknown",
        "status": "Unhealthy"
      },
    ],
    "rss": [
      {
        "network": "rss",
        "worker": "rsshub",
        "tags": [
          "rss"
        ],
        "platform": "Unknown",
        "status": "Unhealthy"
      }
    ],
    "federated": null
  }
}

Checklist

Does this PR introduce a breaking change?

Other information

pseudoyu commented 4 months ago

lgtm

brucexc commented 3 months ago

will affect our prod deployment @incubator4