dayhoff-tools 1.3.28__py3-none-any.whl → 1.4.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 +35 -1
- {dayhoff_tools-1.3.28.dist-info → dayhoff_tools-1.4.0.dist-info}/METADATA +1 -1
- {dayhoff_tools-1.3.28.dist-info → dayhoff_tools-1.4.0.dist-info}/RECORD +5 -5
- {dayhoff_tools-1.3.28.dist-info → dayhoff_tools-1.4.0.dist-info}/WHEEL +0 -0
- {dayhoff_tools-1.3.28.dist-info → dayhoff_tools-1.4.0.dist-info}/entry_points.txt +0 -0
@@ -1314,6 +1314,40 @@ def create_ami(
|
|
1314
1314
|
)
|
1315
1315
|
console.print(f" Excluding volume at {device_name}")
|
1316
1316
|
|
1317
|
+
# --- Check & detach attached studios --------------------------------------------------
|
1318
|
+
# If any user studios are still attached we must detach them before the instance reboots
|
1319
|
+
# for snapshot consistency; otherwise Studio-Manager metadata becomes stale.
|
1320
|
+
|
1321
|
+
attached_resp = make_api_request("GET", f"/engines/{engine['instance_id']}/studios")
|
1322
|
+
attached_studios = attached_resp.json().get("studios", []) if attached_resp.status_code == 200 else []
|
1323
|
+
|
1324
|
+
if attached_studios:
|
1325
|
+
console.print(f"[yellow]⚠ {len(attached_studios)} studio(s) attached to this engine.[/yellow]")
|
1326
|
+
for s in attached_studios:
|
1327
|
+
console.print(f" • {s['user']} ({s['studio_id']})")
|
1328
|
+
|
1329
|
+
if not Confirm.ask("Detach all studios before AMI creation?"):
|
1330
|
+
console.print("AMI creation cancelled.")
|
1331
|
+
return
|
1332
|
+
|
1333
|
+
console.print("Detaching studios…")
|
1334
|
+
for s in attached_studios:
|
1335
|
+
resp = make_api_request("POST", f"/studios/{s['studio_id']}/detach")
|
1336
|
+
if resp.status_code != 200:
|
1337
|
+
console.print(f"[red]❌ Failed to detach {s['studio_id']} – aborting.[/red]")
|
1338
|
+
return
|
1339
|
+
|
1340
|
+
# Wait briefly for volumes to become available (max 2 min)
|
1341
|
+
import time, boto3
|
1342
|
+
ec2_wait = boto3.client("ec2", region_name="us-east-1")
|
1343
|
+
vol_ids = [s['studio_id'] for s in attached_studios]
|
1344
|
+
console.print("Waiting for volumes to detach…")
|
1345
|
+
waiter = ec2_wait.get_waiter("volume_available")
|
1346
|
+
try:
|
1347
|
+
waiter.wait(VolumeIds=vol_ids, WaiterConfig={"Delay": 5, "MaxAttempts": 24})
|
1348
|
+
except Exception:
|
1349
|
+
console.print("[yellow]Proceeding even though some volumes may still be detaching.[/yellow]")
|
1350
|
+
|
1317
1351
|
# Create the AMI
|
1318
1352
|
with Progress(
|
1319
1353
|
SpinnerColumn(),
|
@@ -1596,7 +1630,7 @@ def attach_studio(
|
|
1596
1630
|
console.print("Waiting for engine to be ready...")
|
1597
1631
|
# Wait until the engine is fully running & marked ready (max 5 min)
|
1598
1632
|
console.print("Waiting for engine to be ready (this can take a couple of minutes)…")
|
1599
|
-
|
1633
|
+
# Progress classes already imported at module level – do not re-import to avoid UnboundLocalError
|
1600
1634
|
|
1601
1635
|
with Progress(SpinnerColumn(), TimeElapsedColumn(), TextColumn("[progress.description]{task.description}"), transient=True) as prog:
|
1602
1636
|
prog.add_task("Awaiting engine readiness…", total=None)
|
@@ -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=xzhaWokapifSY74SpQ9W9Ens9isaCbTo_HDsgUKzmzo,83594
|
7
7
|
dayhoff_tools/cli/main.py,sha256=rgeEHD9lJ8SBCR34BTLb7gVInHUUdmEBNXAJnq5yEU4,4795
|
8
8
|
dayhoff_tools/cli/swarm_commands.py,sha256=5EyKj8yietvT5lfoz8Zx0iQvVaNgc3SJX1z2zQR6o6M,5614
|
9
9
|
dayhoff_tools/cli/utility_commands.py,sha256=qs8vH9TBFHsOPC3X8cU3qZigM3dDn-2Ytq4o_F2WubU,27874
|
@@ -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=8YbnQ--usrEgDQGfvpV4MrMji55A0rq2hZaOgFGh6ag,15896
|
30
|
-
dayhoff_tools-1.
|
31
|
-
dayhoff_tools-1.
|
32
|
-
dayhoff_tools-1.
|
33
|
-
dayhoff_tools-1.
|
30
|
+
dayhoff_tools-1.4.0.dist-info/METADATA,sha256=BHiY-xDr4AnxgU9xob8jdZcqZgEAPjEMFj8gMdcFGXY,2824
|
31
|
+
dayhoff_tools-1.4.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
32
|
+
dayhoff_tools-1.4.0.dist-info/entry_points.txt,sha256=iAf4jteNqW3cJm6CO6czLxjW3vxYKsyGLZ8WGmxamSc,49
|
33
|
+
dayhoff_tools-1.4.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|