dayhoff-tools 1.9.2__tar.gz → 1.9.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/PKG-INFO +1 -1
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/cli/engine_commands.py +22 -16
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/pyproject.toml +1 -1
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/README.md +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/__init__.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/chemistry/standardizer.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/chemistry/utils.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/cli/__init__.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/cli/cloud_commands.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/cli/main.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/cli/swarm_commands.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/cli/utility_commands.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/deployment/base.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/deployment/deploy_aws.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/deployment/deploy_gcp.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/deployment/deploy_utils.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/deployment/job_runner.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/deployment/processors.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/deployment/swarm.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/embedders.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/fasta.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/file_ops.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/h5.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/intake/gcp.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/intake/gtdb.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/intake/kegg.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/intake/mmseqs.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/intake/structure.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/intake/uniprot.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/logs.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/sqlite.py +0 -0
- {dayhoff_tools-1.9.2 → dayhoff_tools-1.9.3}/dayhoff_tools/warehouse.py +0 -0
@@ -773,23 +773,22 @@ def engine_status(
|
|
773
773
|
run_disp = engine["state"].capitalize()
|
774
774
|
|
775
775
|
# Compose Active/Idle header with extra detail when idle
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
# show Idle <elapsed>/<threshold> if available; else just N/A for stopped states
|
776
|
+
def _compute_active_disp(idle_info: Dict[str, Any]) -> str:
|
777
|
+
if idle_info.get("status") == "active":
|
778
|
+
return "[green]Active[/green]"
|
780
779
|
if running_state in ("stopped", "stopping"):
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
780
|
+
return "[dim]N/A[/dim]"
|
781
|
+
idle_seconds_v = idle_info.get("idle_seconds")
|
782
|
+
thresh_v = idle_info.get("idle_threshold")
|
783
|
+
if isinstance(idle_seconds_v, (int, float)) and isinstance(
|
784
|
+
thresh_v, (int, float)
|
785
|
+
):
|
786
|
+
return (
|
787
|
+
f"[yellow]Idle {int(idle_seconds_v)//60}m/{int(thresh_v)//60}m[/yellow]"
|
788
|
+
)
|
789
|
+
return "[yellow]Idle[/yellow]"
|
790
|
+
|
791
|
+
active_disp = _compute_active_disp(idle_detector)
|
793
792
|
|
794
793
|
top_lines = [
|
795
794
|
f"[blue]{engine['name']}[/blue] {run_disp} {active_disp}\n",
|
@@ -1005,6 +1004,13 @@ def engine_status(
|
|
1005
1004
|
for k, v in overlay.items():
|
1006
1005
|
idle_detector.setdefault(k, v)
|
1007
1006
|
|
1007
|
+
# Recompute header display using enriched overlay values
|
1008
|
+
try:
|
1009
|
+
active_disp = _compute_active_disp(idle_detector)
|
1010
|
+
top_lines[0] = f"[blue]{engine['name']}[/blue] {run_disp} {active_disp}\n"
|
1011
|
+
except Exception:
|
1012
|
+
pass
|
1013
|
+
|
1008
1014
|
# Activity Sensors (show all with YES/no)
|
1009
1015
|
if idle_detector.get("available"):
|
1010
1016
|
status_lines.append("")
|
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
|
|
5
5
|
|
6
6
|
[project]
|
7
7
|
name = "dayhoff-tools"
|
8
|
-
version = "1.9.
|
8
|
+
version = "1.9.3"
|
9
9
|
description = "Common tools for all the repos at Dayhoff Labs"
|
10
10
|
authors = [
|
11
11
|
{name = "Daniel Martin-Alarcon", email = "dma@dayhofflabs.com"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|