flyctl
flyctl copied to clipboard
Check for host and status page issues async
Change Summary
What and Why:
Fetch host + statuspage issues at the start of CLI commands, and displays them at the end (if any exist). If the command completes before the check has completed, don't block waiting for the response.
This optimizes for fast CLI commands, optionally displaying issues when possible.
How:
Moves the queries into a goroutine, and passes the results through a channel received by a task finalizer at the end of a command.
Related to:
Documentation
- [ ] Fresh Produce
- [ ] In superfly/docs, or asked for help from docs team
- [ ] n/a