pipeline: module registry, run_study, Dask runner and legacy serial executor
- Modules are looked up by name through entry points (tea_modulo.modules, tea_modulo.legacy_modules) and checked against their protocol. - run_study: one EDF to one small row (key, verdict, features, plan hash, module versions; failures become error rows with paths removed). - Modern batches are Dask-native: a dask.delayed graph under annotate(priority=-10, retries=1), run on cluster='remote'|'local'|'sync'| 'auto'. Remote: Client(direct_to_workers=False), get_versions(check=True), only close(). Local: processes, 1 thread, BLAS threads 1, closed by us. - Legacy batches: tea_modulo.legacy.executor.run_serial, a plain loop. - storage.local_copy fetches s3:// objects to a temp file inside the task. Tests: legacy loop, Dask sync and a 2-worker LocalCluster give the same table; error rows; positive priority refused; remote never shut down.
This commit is contained in:
@@ -21,7 +21,7 @@ LEGACY = {"numpy", "scipy", "pandas", "sklearn"}
|
||||
EXTRA = {
|
||||
"validation": {"fhir"},
|
||||
"serving": {"mlflow"},
|
||||
"pipeline": {"dask", "distributed", "s3fs", "fsspec"},
|
||||
"pipeline": {"dask", "distributed", "s3fs", "fsspec", "psutil"},
|
||||
"verify": {"dask", "distributed", "s3fs", "fsspec"},
|
||||
"export": set(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user