dayhoff-tools 1.9.16__tar.gz → 1.9.17__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.16 → dayhoff_tools-1.9.17}/PKG-INFO +1 -1
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/engine/engine_maintenance.py +8 -1
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/pyproject.toml +1 -1
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/README.md +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/__init__.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/chemistry/standardizer.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/chemistry/utils.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/__init__.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/cloud_commands.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/engine/__init__.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/engine/engine_core.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/engine/engine_lifecycle.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/engine/engine_management.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/engine/shared.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/engine/studio_commands.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/main.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/swarm_commands.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/utility_commands.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/deployment/base.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/deployment/deploy_aws.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/deployment/deploy_gcp.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/deployment/deploy_utils.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/deployment/job_runner.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/deployment/processors.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/deployment/swarm.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/embedders.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/fasta.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/file_ops.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/h5.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/intake/gcp.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/intake/gtdb.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/intake/kegg.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/intake/mmseqs.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/intake/structure.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/intake/uniprot.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/logs.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/sqlite.py +0 -0
- {dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/warehouse.py +0 -0
{dayhoff_tools-1.9.16 → dayhoff_tools-1.9.17}/dayhoff_tools/cli/engine/engine_maintenance.py
RENAMED
@@ -149,6 +149,7 @@ def idle_timeout_cmd(
|
|
149
149
|
settings = {
|
150
150
|
"SLACK_NOTIFY_WARNINGS": "false",
|
151
151
|
"SLACK_NOTIFY_IDLE_START": "false",
|
152
|
+
"SLACK_NOTIFY_IDLE_EXIT": "false",
|
152
153
|
"SLACK_NOTIFY_IDE_DISCONNECT": "false",
|
153
154
|
"SLACK_NOTIFY_SHUTDOWN": "false",
|
154
155
|
}
|
@@ -156,6 +157,7 @@ def idle_timeout_cmd(
|
|
156
157
|
settings = {
|
157
158
|
"SLACK_NOTIFY_WARNINGS": "true",
|
158
159
|
"SLACK_NOTIFY_IDLE_START": "false",
|
160
|
+
"SLACK_NOTIFY_IDLE_EXIT": "false",
|
159
161
|
"SLACK_NOTIFY_IDE_DISCONNECT": "false",
|
160
162
|
"SLACK_NOTIFY_SHUTDOWN": "true",
|
161
163
|
}
|
@@ -163,6 +165,7 @@ def idle_timeout_cmd(
|
|
163
165
|
settings = {
|
164
166
|
"SLACK_NOTIFY_WARNINGS": "true",
|
165
167
|
"SLACK_NOTIFY_IDLE_START": "true",
|
168
|
+
"SLACK_NOTIFY_IDLE_EXIT": "true",
|
166
169
|
"SLACK_NOTIFY_IDE_DISCONNECT": "true",
|
167
170
|
"SLACK_NOTIFY_SHUTDOWN": "true",
|
168
171
|
}
|
@@ -174,7 +177,10 @@ def idle_timeout_cmd(
|
|
174
177
|
f"grep -q '^{key}=' /etc/engine.env && sudo sed -i 's|^{key}=.*|{key}={value}|' /etc/engine.env || echo '{key}={value}' | sudo tee -a /etc/engine.env > /dev/null"
|
175
178
|
)
|
176
179
|
|
177
|
-
|
180
|
+
# Instead of restarting service, send SIGHUP to reload config
|
181
|
+
commands.append(
|
182
|
+
"sudo pkill -HUP -f engine-idle-detector.py || sudo systemctl restart engine-idle-detector.service"
|
183
|
+
)
|
178
184
|
|
179
185
|
resp = ssm.send_command(
|
180
186
|
InstanceIds=[engine["instance_id"]],
|
@@ -184,6 +190,7 @@ def idle_timeout_cmd(
|
|
184
190
|
cid = resp["Command"]["CommandId"]
|
185
191
|
time.sleep(2) # Give it a moment to process
|
186
192
|
console.print(f"[green]✓ Slack notifications updated to '{slack}'[/green]")
|
193
|
+
console.print("[dim]Note: Settings updated without resetting idle timer[/dim]")
|
187
194
|
|
188
195
|
# Handle setting new timeout value
|
189
196
|
if set is not None:
|
@@ -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.17"
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|