che icon indicating copy to clipboard operation
che copied to clipboard

Show error if activity tracker extension fails to ping machine-exec

Open dkwon17 opened this issue 1 year ago • 0 comments

Is your enhancement related to a problem? Please describe

In CheCode, the activity tracker extension sends events to che-machine-exec to let it know that the current workspace is being used by the user. This is done to detect whether the workspace is idle or not, as idle workspaces are terminated in 30 minutes by default, which is configured from spec.devEnvironments.secondsOfInactivityBeforeIdling from the CheCluster CR.

If the activity tracker extension fails to ping che-machine-exec, a message is printed in the extension logs, however this is not easily noticeable from the user's perspective.

Describe the solution you'd like

If the ping to che-machine-exec fails, a one-time error notification can be created to let the user know that there are problems with activity/idle detection.

For example:

Unable to communicate with idling service due to error: ${error.message}

This workspace may automatically terminate in ${idletimeout} minutes. For ephemeral workspaces, current workspace content may be lost.
 
Please contact an administrator.

Describe alternatives you've considered

No response

Additional context

No response

dkwon17 avatar Sep 06 '24 16:09 dkwon17