@@ -30,19 +30,21 @@ import (
3030var (
3131 shortHealthHelp = "Report the health status of an SDK"
3232 longHealthHelp = `
33- The set-health command is called from within a workshop to inform the system of the
34- SDK's overall health.
35-
36- It can be called from any hook. An SDK can
37- optionally provide a 'check-health' hook to manage these calls, which is
38- then called periodically and with increased frequency while the SDK is
39- "waiting". Any health regression will issue a warning to the user.
40-
41- - status: One of okay, waiting, error.
42-
43- - error-code: An optional note matching regex '[a-z](?:-?[a-z0-9])+', e.g. missing-cuda; up to 20 symbols.
33+ The set-health command is called from within a workshop
34+ to inform the system of the SDK's overall health.
35+
36+ It can only be called from the optional 'check-health' hook,
37+ which runs when SDK health is checked (e.g. during launch or refresh)
38+ and retried while the SDK reports as 'waiting'.
39+ If the SDK reports an 'error', the hook fails with the provided message.
40+
41+ - status: One of 'okay', 'waiting', 'error'.
42+
43+ - code: An optional note matching regex '[a-z](?:-?[a-z0-9])+', e.g. 'missing-cuda';
44+ 3-30 characters. Must be empty if the status is 'okay'.
4445
45- - message: A user-friendly message expanding the status, 7-70 lines long. Required if the status is 'waiting' or 'error'.
46+ - message: A user-friendly message expanding the status, 7-70 characters long.
47+ Must be empty if the status is 'okay'; required if the status is 'waiting' or 'error'.
4648 `
4749)
4850
0 commit comments