metacausal.adapters.INNER_WORKER_ENV¶
- metacausal.adapters.INNER_WORKER_ENV = 'METACAUSAL_INNER_WORKER'¶
Sentinel env var set inside every MetaCausal parallel worker. Custom components (
GenericCATEAdapter, arbitrary callables) can check this to cooperate with MetaCausal’s own-worker parallelism guard – pin your model to serial when it is set, the same way EconMLAdapter/CausalMLAdapter/… do internally. See “Extending MetaCausal” in the project README.