flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

Check for host and status page issues async

Open wjordan opened this issue 1 year ago • 0 comments

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

wjordan avatar Dec 17 '24 08:12 wjordan