feat: 🎸 Add fallback if client daemon is down or errors (#2085)
* feat: 🎸 Add fallback if client daemon is down or errors * test: 💍 Add tests for client daemon being down ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12026
This commit is contained in:
1 parent
9046c01238
commit
2e36d3c3e2
8 files changed
+195
-119
No files matched your search
@@ -146,9 +146,10 @@ handle('searchClientDaemon', async (request) =>
|
||||
* Check to see if the client daemon is running. We use the presence of a
|
||||
* socket path as a proxy for whether the daemon is running.
|
||||
*/
|
||||
handle('isClientDaemonRunning', async () =>
|
||||
Boolean(clientDaemonManager.socketPath),
|
||||
);
|
||||
handle('isClientDaemonRunning', async () => {
|
||||
clientDaemonManager.status();
|
||||
return Boolean(clientDaemonManager.socketPath);
|
||||
});
|
||||
|
||||
/**
|
||||
* Handler to help create terminal windows. We don't use the helper `handle` method
|
||||
|
||||
Reference in new issue
Block a user