dayhoff-tools 1.4.18__tar.gz → 1.4.19__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.
Potentially problematic release.
This version of dayhoff-tools might be problematic. Click here for more details.
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/PKG-INFO +1 -1
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/cli/engine_commands.py +12 -7
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/pyproject.toml +1 -1
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/README.md +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/__init__.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/chemistry/standardizer.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/chemistry/utils.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/cli/__init__.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/cli/cloud_commands.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/cli/main.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/cli/swarm_commands.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/cli/utility_commands.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/deployment/base.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/deployment/deploy_aws.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/deployment/deploy_gcp.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/deployment/deploy_utils.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/deployment/job_runner.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/deployment/processors.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/deployment/swarm.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/embedders.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/fasta.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/file_ops.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/h5.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/intake/gcp.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/intake/gtdb.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/intake/kegg.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/intake/mmseqs.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/intake/structure.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/intake/uniprot.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/logs.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/sqlite.py +0 -0
- {dayhoff_tools-1.4.18 → dayhoff_tools-1.4.19}/dayhoff_tools/warehouse.py +0 -0
|
@@ -686,9 +686,8 @@ def engine_status(
|
|
|
686
686
|
status_lines.append("")
|
|
687
687
|
status_lines.append("[bold]Attached Studios:[/bold]")
|
|
688
688
|
for studio in attached_studios:
|
|
689
|
-
attach_time = studio.get("attach_time", "Unknown")
|
|
690
689
|
status_lines.append(
|
|
691
|
-
f" • {studio['user']} ({studio['studio_id']})
|
|
690
|
+
f" • {studio['user']} ({studio['studio_id']})"
|
|
692
691
|
)
|
|
693
692
|
|
|
694
693
|
console.print(Panel("\n".join(status_lines), title="Engine Status", border_style="blue"))
|
|
@@ -1273,13 +1272,14 @@ def create_ami(
|
|
|
1273
1272
|
console.print("Cleaning up instance for AMI creation...")
|
|
1274
1273
|
ssm = boto3.client("ssm", region_name="us-east-1")
|
|
1275
1274
|
|
|
1276
|
-
#
|
|
1275
|
+
# Clean up instance state, stopping SSM agent last to allow proper status reporting
|
|
1277
1276
|
cleanup_commands = [
|
|
1278
|
-
"sudo systemctl stop amazon-ssm-agent",
|
|
1279
|
-
"sudo rm -rf /var/lib/amazon/ssm/* /etc/amazon/ssm/*",
|
|
1280
1277
|
"sudo rm -f /opt/dayhoff/first_boot_complete.sentinel",
|
|
1281
1278
|
"history -c",
|
|
1282
1279
|
"sudo rm -rf /tmp/* /var/log/messages /var/log/cloud-init.log",
|
|
1280
|
+
"sudo rm -rf /var/lib/amazon/ssm/* /etc/amazon/ssm/*",
|
|
1281
|
+
# Stop SSM agent last with a delay to allow status reporting
|
|
1282
|
+
"sleep 2 && sudo systemctl stop amazon-ssm-agent &",
|
|
1283
1283
|
]
|
|
1284
1284
|
|
|
1285
1285
|
cleanup_response = ssm.send_command(
|
|
@@ -1302,9 +1302,14 @@ def create_ami(
|
|
|
1302
1302
|
if result["Status"] in ["Success", "Failed"]:
|
|
1303
1303
|
break
|
|
1304
1304
|
|
|
1305
|
-
|
|
1305
|
+
# Note: InProgress status is expected when SSM agent stops itself
|
|
1306
|
+
if result["Status"] not in ["Success", "InProgress"]:
|
|
1307
|
+
console.print(
|
|
1308
|
+
f"[yellow]⚠️ Warning: Cleanup command status: {result['Status']}[/yellow]"
|
|
1309
|
+
)
|
|
1310
|
+
elif result["Status"] == "InProgress":
|
|
1306
1311
|
console.print(
|
|
1307
|
-
"[
|
|
1312
|
+
"[dim]ℹ️ Cleanup command still in progress (expected when SSM agent stops itself)[/dim]"
|
|
1308
1313
|
)
|
|
1309
1314
|
|
|
1310
1315
|
# Get instance details to find volumes to exclude
|
|
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "dayhoff-tools"
|
|
8
|
-
version = "1.4.
|
|
8
|
+
version = "1.4.19"
|
|
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
|