Skip to content

Conversation

@chongshenng
Copy link
Member

@chongshenng chongshenng commented Dec 9, 2025

Merge after:

flwr list

$ flwr list
Loading project configuration...
Success
📄 Listing all runs...
┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓
┃        Run ID        ┃ Federation ┃         App          ┃       Status       ┃ Elapsed  ┃   Status Changed @   ┃
┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩
│ 12366349138033778173 │ default    │ @csng/cap-app==1.0.0 │ finished:completed │ 3 m 15 s │ 2025-12-12 12:51:58Z │
└──────────────────────┴────────────┴──────────────────────┴────────────────────┴──────────┴──────────────────────┘

flwr list --run-id [...]

$ flwr list --run-id 15394512368119076380
Loading project configuration...
Success
🔍 Displaying information for run ID 15394512368119076380...
┌────────────────────────────┬──────────────────────┐
│ Run ID                     │ 15394512368119076380 │
│ Federation                 │ default              │
│ App                        │ @csng/cap-app==1.0.0 │
│ FAB Hash                   │ ccf1b50b...97d61422  │
│ Status                     │ running              │
│ Elapsed                    │ 46 s                 │
│ Pending At                 │ 2025-12-12 12:38:39Z │
│ Starting At                │ 2025-12-12 12:38:39Z │
│ Running At                 │ 2025-12-12 12:38:39Z │
│ Finished At                │ N/A                  │
│ Network traffic (inbound)  │ 1.9 MB               │
│ Network traffic (outbound) │ 2.9 MB               │
│ Network Traffic (total)    │ 4.8 MB               │
│ Compute Time (ServerApp)   │ 46 s                 │
│ Compute Time (ClientApp)   │ 30 s                 │
│ Compute Time (total)       │ 76 s                 │
└────────────────────────────┴──────────────────────┘

flwr list --run-id [...] --format json

$ flwr list --run-id 12366349138033778173 --format json
{
  "success": true,
  "runs": [
    {
      "run-id": "12366349138033778173",
      "federation": "default",
      "fab-id": "csng/cap-app",
      "fab-name": "cap-app",
      "fab-version": "1.0.0",
      "fab-hash": "ccf1b50b",
      "status": "finished:completed",
      "elapsed": 195.595556,
      "pending-at": "2025-12-12 12:48:41Z",
      "starting-at": "2025-12-12 12:48:42Z",
      "running-at": "2025-12-12 12:48:43Z",
      "finished-at": "2025-12-12 12:51:58Z",
      "network-traffic": {
        "inbound-bytes": 10013990,
        "outbound-bytes": 10016340,
        "total-bytes": 20030330
      },
      "compute-time": {
        "serverapp-seconds": 195.595556,
        "clientapp-seconds": 150.28040194511414,
        "total-seconds": 345.8759579451141
      }
    }
  ]
}

flwr federation show

$ flwr federation show
Loading project configuration...
Success
📄 Showing 'default' federation ...
  Federation Members
┏━━━━━━━━━━━━┳━━━━━━━━┓
┃ Account ID ┃  Role  ┃
┡━━━━━━━━━━━━╇━━━━━━━━┩
│ <id:none>  │ Member │
└────────────┴────────┘
         SuperNodes in the Federation
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━┓
┃       Node ID       ┃    Owner    ┃ Status ┃
┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━┩
│ 7779326520923689553 │ <name:none> │ online │
└─────────────────────┴─────────────┴────────┘
                       Runs in the Federation
┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━┓
┃        Run ID        ┃         App          ┃ Status  ┃ Elapsed  ┃
┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━┩
│ 12366349138033778173 │ @csng/cap-app==1.0.0 │ running │ 1 m 39 s │
└──────────────────────┴──────────────────────┴─────────┴──────────┘

flwr federation show --format json

flwr federation show --format json
[
  [
    {
      "member_id": "<id:none>",
      "role": "Member"
    }
  ],
  [
    {
      "node_id": "7779326520923689553",
      "owner": "<name:none>",
      "status": "online"
    }
  ],
  [
    {
      "run_id": "12366349138033778173",
      "app": "@csng/cap-app==1.0.0",
      "status": "finished:completed",
      "elapsed": 195.595556
    }
  ]
]

flwr supernode list

$ flwr supernode list
Loading project configuration...
Success
📄 Listing all nodes...
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓
┃       Node ID       ┃    Owner    ┃ Status ┃ Elapsed  ┃   Status Changed @   ┃
┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩
│ 7779326520923689553 │ <name:none> │ online │ 1 m 42 s │ 2025-12-12 12:48:36Z │
└─────────────────────┴─────────────┴────────┴──────────┴──────────────────────┘

flwr supernode list --format json

$ flwr supernode list --format json
{
  "success": true,
  "nodes": [
    {
      "node-id": "7779326520923689553",
      "owner-aid": "<id:none>",
      "owner-name": "<name:none>",
      "status": "online",
      "created-at": "2025-12-12 12:48:36Z",
      "online-at": "2025-12-12 12:48:36Z",
      "online-elapsed": 858.256735,
      "offline-at": "N/A",
      "deleted-at": "N/A"
    }
  ]
}

@github-actions github-actions bot added the Maintainer Used to determine what PRs (mainly) come from Flower maintainers. label Dec 9, 2025
@chongshenng chongshenng marked this pull request as ready for review December 12, 2025 13:11
@chongshenng chongshenng changed the title feat(framework): Extend flwr list to display capacity runtime feat(framework): Update flwr commands to output humanized values Dec 12, 2025
@danieljanes danieljanes merged commit d1a705f into main Dec 12, 2025
128 of 132 checks passed
@danieljanes danieljanes deleted the extend-flwr-list-w-runtime branch December 12, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintainer Used to determine what PRs (mainly) come from Flower maintainers. Track capacities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants