gedih3.doctor.parallel#
Doctor-internal scandir helpers + back-compat re-export of
gedih3.parallel.parallel_map().
The general parallelism primitive has been promoted to
gedih3.parallel (it is used by the build, download, and
manifest-writing paths too, not only by the doctor diagnoses). This
module now keeps only the doctor-internal O(1) scandir helpers used by
doctor/diagnoses/orphans.py and re-exports parallel_map so any
external caller importing from here keeps working.
Functions#
|
O(1) emptiness check via |
|
List immediate subdirectories of a partition directory. |
|
O(1) parquet presence check inside one year=*/ directory. |
Module Contents#
- gedih3.doctor.parallel.partition_is_empty(partition_dir: str) bool[source]#
O(1) emptiness check via
os.scandir()— no recursive glob.Mirrors the build pipeline’s emptiness check at
gh3builder.py:1356-1362. A partition is considered empty when it contains no parquet file at any depth (year subdir or root).