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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: interloper-docker
3
- Version: 0.30.1
3
+ Version: 0.32.0
4
4
  Summary: Interloper Docker integration
5
5
  Author: Guillaume Onfroy
6
6
  Author-email: Guillaume Onfroy <guillaume@digitlcloud.com>
@@ -3,7 +3,7 @@
3
3
  # ###############
4
4
  [project]
5
5
  name = "interloper-docker"
6
- version = "0.30.1"
6
+ version = "0.32.0"
7
7
  description = "Interloper Docker integration"
8
8
  readme = "README.md"
9
9
  authors = [{ name = "Guillaume Onfroy", email = "guillaume@digitlcloud.com" }]
@@ -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
- (``_build_launcher``) injects the app-level defaults; any overrides
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.