-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy path__init__.py
More file actions
50 lines (46 loc) · 1.59 KB
/
Copy path__init__.py
File metadata and controls
50 lines (46 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"""Run the agentex backend locally as host processes, with no Docker.
The engine behind `./dev.sh no-docker` / `make dev-no-docker`: it provisions embedded datastores,
runs migrations, and supervises uvicorn (plus a Temporal worker), tearing everything down
on Ctrl-C / SIGTERM. Postgres/Redis/Temporal need no system install (bundled /
auto-downloaded). MongoDB is REQUIRED for the full stack — the Temporal worker builds
Mongo-backed repositories at boot, so a missing/unreachable mongod fails fast instead of
crashing the worker. It is always started; --mongo-uri points at an external MongoDB
instead of launching a local mongod. The OTel collector is optional; --lean turns off
temporal/otel (but keeps MongoDB).
Modules: `config` (pure, unit-testable), `services` (provisioning), `supervise`
(subprocess plumbing), `runner` (orchestration).
"""
from scripts.dev_nodocker.config import (
LOOPBACK,
DevNoDockerConfig,
build_arg_parser,
build_env,
resolve_config,
)
from scripts.dev_nodocker.runner import main, run
from scripts.dev_nodocker.services import (
provision_mongo,
provision_otel,
provision_postgres,
provision_redis,
provision_temporal,
teardown_redis,
)
from scripts.dev_nodocker.supervise import run_migrations, wait_for_health
__all__ = [
"LOOPBACK",
"DevNoDockerConfig",
"build_arg_parser",
"resolve_config",
"build_env",
"provision_postgres",
"provision_redis",
"provision_temporal",
"provision_mongo",
"provision_otel",
"teardown_redis",
"run_migrations",
"wait_for_health",
"run",
"main",
]