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.
- {interloper_docker-0.22.0 → interloper_docker-0.23.0}/PKG-INFO +1 -1
- {interloper_docker-0.22.0 → interloper_docker-0.23.0}/pyproject.toml +1 -1
- {interloper_docker-0.22.0 → interloper_docker-0.23.0}/src/interloper_docker/launcher.py +1 -1
- {interloper_docker-0.22.0 → interloper_docker-0.23.0}/src/interloper_docker/runner.py +4 -3
- {interloper_docker-0.22.0 → interloper_docker-0.23.0}/README.md +0 -0
- {interloper_docker-0.22.0 → interloper_docker-0.23.0}/src/interloper_docker/__init__.py +0 -0
|
@@ -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 = "
|
|
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
|
-
|
|
63
|
+
The blocking container-polling walk is offloaded to a thread, so the
|
|
64
|
+
runner satisfies the async-native ``run()`` contract::
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
|
|
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"
|
|
File without changes
|
|
File without changes
|