interloper-docker 0.22.0__tar.gz → 0.23.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.22.0
3
+ Version: 0.23.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.22.0"
6
+ version = "0.23.0"
7
7
  description = "Interloper Docker integration"
8
8
  readme = "README.md"
9
9
  authors = [{ name = "Guillaume Onfroy", email = "guillaume@digitlcloud.com" }]
@@ -82,7 +82,7 @@ class DockerLauncher(Launcher):
82
82
  postgres_password: str,
83
83
  postgres_database: str,
84
84
  image: str = "interloper:latest-scheduler",
85
- runner_type: str = "multi_thread",
85
+ runner_type: str = "async",
86
86
  runner_config: dict[str, Any] | None = None,
87
87
  volumes: dict[str, dict[str, str]] | None = None,
88
88
  ) -> None:
@@ -60,10 +60,11 @@ class DockerRunner(SyncRunner):
60
60
  by the scheduler) and updates internal state silently (``emit=False``)
61
61
  to avoid duplicate events.
62
62
 
63
- Fully synchronous::
63
+ The blocking container-polling walk is offloaded to a thread, so the
64
+ runner satisfies the async-native ``run()`` contract::
64
65
 
65
- with DockerRunner(image="my-image", on_event=log_event) as runner:
66
- result = runner.run(dag)
66
+ result = await DockerRunner(image="my-image", on_event=log_event).run(dag)
67
+ # or, from a sync edge: asyncio.run(DockerRunner(image=...).run(dag))
67
68
  """
68
69
 
69
70
  image: str = "interloper:latest-worker"