Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using heartbeats, currently the provider has a chance to start and execute the heartbeat async. This means that for commands like run and shell (and others), we gett confusing error messages: ```bash > make cnquery/install && cnquery run aws -c asset.eol x please update the provider plugin for aws plugin-ID=go.mondoo.com/cnquery/v9/providers/aws → loaded configuration from /home/zero/.config/mondoo/mondoo.yml using source default FTL failed to run query error="rpc error: code = Canceled desc = grpc: the client connection is closing" ``` The mechanism in this PR is much more proactive at checking the heartbeat first, before returning a running provider, thus eliminating confusing errors: ```bash > make cnquery/install && cnquery shell aws -c asset.eol FTL failed to start provider aws error="please update the provider plugin for aws" ``` Signed-off-by: Dominik Richter <[email protected]>
- Loading branch information