Commit 2445cda
authored
Implement ListWorkers and DescribeWorker (#867)
## What was changed
<!-- Describe what has changed in this PR -->
Implemented the ListWorkers and DescribeWorker gRPC requests
note: list workers doesn't display all heartbeat information. Open to
feedback on if we should display more/all/less fields. See screenshots
in testing section for an example.
PageSize is also not supported in server for the ListWorkers call, so
that was left out. Added a `limit` field to allow users to limit how
many results are displayed, similar to other CLI commands.
Sample output of the two new commands
<img width="1521" height="460" alt="image"
src="https://github.com/user-attachments/assets/5a45be14-1071-4e03-a7cc-e26e4d61dbc9"
/>
## Why?
<!-- Tell your future self why have you made these changes -->
New feature.
## Checklist
<!--- add/delete as needed --->
1. Closes #868
2. How was this tested:
<!--- Please describe how you tested your changes/how we can test them
-->
Added tests, because Go SDK doesn't support worker heartbeating yet, we
manually send a `RecordWorkerHeartbeatRequest` gRPC request to mimic the
behavior of a worker.
3. Any docs updates needed?
<!--- update README if applicable
or point out where to update docs.temporal.io -->1 parent 711cdac commit 2445cda
File tree
5 files changed
+658
-0
lines changed- temporalcli
- commandsgen
5 files changed
+658
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2866 | 2866 | | |
2867 | 2867 | | |
2868 | 2868 | | |
| 2869 | + | |
| 2870 | + | |
2869 | 2871 | | |
2870 | 2872 | | |
2871 | 2873 | | |
| |||
3217 | 3219 | | |
3218 | 3220 | | |
3219 | 3221 | | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
| 3247 | + | |
| 3248 | + | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
| 3263 | + | |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
3220 | 3279 | | |
3221 | 3280 | | |
3222 | 3281 | | |
| |||
0 commit comments