Skip to content

Commit f93ded9

Browse files
improved state message
1 parent 396346d commit f93ded9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

bibigrid/core/startup_rest.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,10 @@ async def state(cluster_id: str):
223223
"""
224224
Expects a cluster id.
225225
226-
Returns whether the cluster's state according to the log file.
227-
If the running state of the cluster has been changed outside BiBiGrid REST, this method cannot detect this.
228-
229-
In such cases checking [info](#info)'s ready value is more reliable as it includes a check whether the cluster
230-
actually exists on the provider. Ready omits checking the provider and is therefore less reliable, but faster.
231-
* @param cluster_id: id of cluster to get ready state from
232-
* @return: Message whether cluster is down or up and a bool "ready" whether the cluster is ready.
226+
Returns the cluster's state according to the ~/.config/bibigrid/cluster_info/{cluster_id}.yaml file.
227+
If the running state of the cluster has been changed outside BiBiGrid, this method cannot detect that.
228+
* @param cluster_id: id of cluster to get state from
229+
* @return: cluster state
233230
"""
234231
LOG.debug(f"Requested log on {cluster_id}.")
235232
try:

0 commit comments

Comments
 (0)