Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for host and status page issues async #4125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wjordan
Copy link
Contributor

@wjordan wjordan commented Dec 17, 2024

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

Fetch issues at the start of command, and display at the end.
If the command completes before the check has completed, don't block waiting for the response.
This optimizes for fast CLI command completion, optionally displaying issues when possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant