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