interloper-docker 0.30.1__tar.gz → 0.32.0__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.
- {interloper_docker-0.30.1 → interloper_docker-0.32.0}/PKG-INFO +1 -1
- {interloper_docker-0.30.1 → interloper_docker-0.32.0}/pyproject.toml +1 -1
- {interloper_docker-0.30.1 → interloper_docker-0.32.0}/src/interloper_docker/launcher.py +2 -2
- {interloper_docker-0.30.1 → interloper_docker-0.32.0}/src/interloper_docker/runner.py +4 -12
- {interloper_docker-0.30.1 → interloper_docker-0.32.0}/README.md +0 -0
- {interloper_docker-0.30.1 → interloper_docker-0.32.0}/src/interloper_docker/__init__.py +0 -0
|
@@ -32,8 +32,8 @@ class DockerLauncher(Launcher):
|
|
|
32
32
|
which hydrates the DAG from the database and runs it to completion.
|
|
33
33
|
|
|
34
34
|
Postgres connection parameters are passed as plain values. The caller
|
|
35
|
-
(``
|
|
36
|
-
from the launcher YAML config take precedence.
|
|
35
|
+
(``Launcher.from_settings``) injects the app-level defaults; any
|
|
36
|
+
overrides from the launcher YAML config take precedence.
|
|
37
37
|
"""
|
|
38
38
|
|
|
39
39
|
@classmethod
|
|
@@ -86,9 +86,7 @@ class DockerRunner(SyncRunner):
|
|
|
86
86
|
super().model_post_init(context)
|
|
87
87
|
self._docker = docker.from_env()
|
|
88
88
|
|
|
89
|
-
#
|
|
90
|
-
# Scheduling primitives
|
|
91
|
-
# ------------------------------------------------------------------
|
|
89
|
+
# -- Scheduling primitives -------------------------------------------------
|
|
92
90
|
|
|
93
91
|
@property
|
|
94
92
|
def _capacity(self) -> int:
|
|
@@ -220,9 +218,7 @@ class DockerRunner(SyncRunner):
|
|
|
220
218
|
except Exception: # noqa: BLE001, S110
|
|
221
219
|
pass
|
|
222
220
|
|
|
223
|
-
#
|
|
224
|
-
# Container polling
|
|
225
|
-
# ------------------------------------------------------------------
|
|
221
|
+
# -- Container polling -----------------------------------------------------
|
|
226
222
|
|
|
227
223
|
def _poll_container(self, container: Container) -> None:
|
|
228
224
|
"""Block until the container exits; raise on failure.
|
|
@@ -236,9 +232,7 @@ class DockerRunner(SyncRunner):
|
|
|
236
232
|
cid = (container.id or "unknown")[:12]
|
|
237
233
|
raise RunnerError(f"Container {cid} exited with code {status_code}")
|
|
238
234
|
|
|
239
|
-
#
|
|
240
|
-
# Command and environment builders
|
|
241
|
-
# ------------------------------------------------------------------
|
|
235
|
+
# -- Command and environment builders --------------------------------------
|
|
242
236
|
|
|
243
237
|
def _build_command(
|
|
244
238
|
self,
|
|
@@ -291,9 +285,7 @@ class DockerRunner(SyncRunner):
|
|
|
291
285
|
"""Build the name for the container."""
|
|
292
286
|
return f"interloper_run_{self.state.run_id[:8]}_{asset.id[:8]}"
|
|
293
287
|
|
|
294
|
-
#
|
|
295
|
-
# Real-time event streaming (stderr)
|
|
296
|
-
# ------------------------------------------------------------------
|
|
288
|
+
# -- Real-time event streaming (stderr) ------------------------------------
|
|
297
289
|
|
|
298
290
|
def _start_log_streaming(self, container: Container, *, target_asset_id: str) -> None:
|
|
299
291
|
"""Stream events from the container's stderr to the host EventBus.
|
|
File without changes
|
|
File without changes
|