dayhoff-tools 1.6.8__tar.gz → 1.6.9__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.6.8 → dayhoff_tools-1.6.9}/PKG-INFO +1 -1
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/cli/engine_commands.py +11 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/pyproject.toml +1 -1
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/README.md +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/__init__.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/chemistry/standardizer.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/chemistry/utils.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/cli/__init__.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/cli/cloud_commands.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/cli/main.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/cli/swarm_commands.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/cli/utility_commands.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/deployment/base.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/deployment/deploy_aws.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/deployment/deploy_gcp.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/deployment/deploy_utils.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/deployment/job_runner.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/deployment/processors.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/deployment/swarm.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/embedders.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/fasta.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/file_ops.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/h5.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/intake/gcp.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/intake/gtdb.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/intake/kegg.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/intake/mmseqs.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/intake/structure.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/intake/uniprot.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/logs.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/sqlite.py +0 -0
- {dayhoff_tools-1.6.8 → dayhoff_tools-1.6.9}/dayhoff_tools/warehouse.py +0 -0
@@ -1863,6 +1863,17 @@ def _attempt_studio_attach(studio, engine, target_user, public_key):
|
|
1863
1863
|
# --- determine if we should retry ---
|
1864
1864
|
recoverable = False
|
1865
1865
|
if response.status_code in (409, 503):
|
1866
|
+
# Special-case: 409 because studio is already in-use. If it's attached to
|
1867
|
+
# *this* engine we can safely treat it as success.
|
1868
|
+
if response.status_code == 409:
|
1869
|
+
try:
|
1870
|
+
err_text = response.json().get("error", "").lower()
|
1871
|
+
except Exception:
|
1872
|
+
err_text = ""
|
1873
|
+
# Fast path – avoid another API call when we know why we got 409.
|
1874
|
+
if "in-use" in err_text or "already attached" in err_text:
|
1875
|
+
if _is_studio_attached(studio["studio_id"], engine["instance_id"]):
|
1876
|
+
return True, None
|
1866
1877
|
recoverable = True
|
1867
1878
|
else:
|
1868
1879
|
err_msg = response.json().get("error", "").lower()
|
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
|
|
5
5
|
|
6
6
|
[project]
|
7
7
|
name = "dayhoff-tools"
|
8
|
-
version = "1.6.
|
8
|
+
version = "1.6.9"
|
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
|