dayhoff-tools 1.8.7__py3-none-any.whl → 1.9.0__py3-none-any.whl
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/cli/engine_commands.py +21 -6
- {dayhoff_tools-1.8.7.dist-info → dayhoff_tools-1.9.0.dist-info}/METADATA +1 -1
- {dayhoff_tools-1.8.7.dist-info → dayhoff_tools-1.9.0.dist-info}/RECORD +5 -5
- {dayhoff_tools-1.8.7.dist-info → dayhoff_tools-1.9.0.dist-info}/WHEEL +0 -0
- {dayhoff_tools-1.8.7.dist-info → dayhoff_tools-1.9.0.dist-info}/entry_points.txt +0 -0
@@ -847,16 +847,31 @@ def engine_status(
|
|
847
847
|
run_disp = "[green]Running[/green]"
|
848
848
|
elif running_state == "pending":
|
849
849
|
run_disp = "[yellow]Starting...[/yellow]"
|
850
|
+
elif running_state == "stopping":
|
851
|
+
run_disp = "[yellow]Stopping...[/yellow]"
|
850
852
|
elif running_state == "stopped":
|
851
853
|
run_disp = "[dim]Stopped[/dim]"
|
852
854
|
else:
|
853
|
-
run_disp = engine["state"]
|
855
|
+
run_disp = engine["state"].capitalize()
|
854
856
|
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
857
|
+
# Compose Active/Idle header with extra detail when idle
|
858
|
+
if idle_detector.get("status") == "active":
|
859
|
+
active_disp = "[green]Active[/green]"
|
860
|
+
else:
|
861
|
+
# show Idle <elapsed>/<threshold> if available; else just N/A for stopped states
|
862
|
+
if running_state in ("stopped", "stopping"):
|
863
|
+
active_disp = "[dim]N/A[/dim]"
|
864
|
+
else:
|
865
|
+
idle_seconds = idle_detector.get("idle_seconds")
|
866
|
+
thresh = idle_detector.get("idle_threshold")
|
867
|
+
if isinstance(idle_seconds, (int, float)) and isinstance(
|
868
|
+
thresh, (int, float)
|
869
|
+
):
|
870
|
+
active_disp = (
|
871
|
+
f"[yellow]Idle {int(idle_seconds)//60}m/{int(thresh)//60}m[/yellow]"
|
872
|
+
)
|
873
|
+
else:
|
874
|
+
active_disp = "[yellow]Idle[/yellow]"
|
860
875
|
|
861
876
|
top_lines = [
|
862
877
|
f"[blue]{engine['name']}[/blue] {run_disp} {active_disp}\n",
|
@@ -3,7 +3,7 @@ dayhoff_tools/chemistry/standardizer.py,sha256=uMn7VwHnx02nc404eO6fRuS4rsl4dvSPf
|
|
3
3
|
dayhoff_tools/chemistry/utils.py,sha256=jt-7JgF-GeeVC421acX-bobKbLU_X94KNOW24p_P-_M,2257
|
4
4
|
dayhoff_tools/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
dayhoff_tools/cli/cloud_commands.py,sha256=33qcWLmq-FwEXMdL3F0OHm-5Stlh2r65CldyEZgQ1no,40904
|
6
|
-
dayhoff_tools/cli/engine_commands.py,sha256=
|
6
|
+
dayhoff_tools/cli/engine_commands.py,sha256=o_7d4YhHO5U_WncIowx91v6qCPnalFPqayx5p9CnSug,110214
|
7
7
|
dayhoff_tools/cli/main.py,sha256=LoFs3SI4fdCjP4pdxEAhri-_q0dmNYupmBCRE4KbBac,5933
|
8
8
|
dayhoff_tools/cli/swarm_commands.py,sha256=5EyKj8yietvT5lfoz8Zx0iQvVaNgc3SJX1z2zQR6o6M,5614
|
9
9
|
dayhoff_tools/cli/utility_commands.py,sha256=WQTHOh1MttuxaJjl2c6zMa4x7_JuaKMQgcyotYrU3GA,25883
|
@@ -27,7 +27,7 @@ dayhoff_tools/intake/uniprot.py,sha256=BZYJQF63OtPcBBnQ7_P9gulxzJtqyorgyuDiPeOJq
|
|
27
27
|
dayhoff_tools/logs.py,sha256=DKdeP0k0kliRcilwvX0mUB2eipO5BdWUeHwh-VnsICs,838
|
28
28
|
dayhoff_tools/sqlite.py,sha256=jV55ikF8VpTfeQqqlHSbY8OgfyfHj8zgHNpZjBLos_E,18672
|
29
29
|
dayhoff_tools/warehouse.py,sha256=UETBtZD3r7WgvURqfGbyHlT7cxoiVq8isjzMuerKw8I,24475
|
30
|
-
dayhoff_tools-1.
|
31
|
-
dayhoff_tools-1.
|
32
|
-
dayhoff_tools-1.
|
33
|
-
dayhoff_tools-1.
|
30
|
+
dayhoff_tools-1.9.0.dist-info/METADATA,sha256=3fx18V_-b31gFOH9QMYxAC_fCXPdfFjekTrcq2z0x-Y,2914
|
31
|
+
dayhoff_tools-1.9.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
32
|
+
dayhoff_tools-1.9.0.dist-info/entry_points.txt,sha256=iAf4jteNqW3cJm6CO6czLxjW3vxYKsyGLZ8WGmxamSc,49
|
33
|
+
dayhoff_tools-1.9.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|