Windows workers require OS-level environment variable configuration
warningconfigurationUpdated Nov 19, 2021(via Exa)
Sources
Technologies:
How to detect:
On Windows, Dramatiq environment variables (e.g., dramatiq_queue_prefetch) cannot be set from batch files without cmd.exe restart, nor from Python code via os.environ due to permissions. PyCharm venv terminal also fails to pick up settings.
Recommended action:
Set Dramatiq environment variables at Windows OS level (System Properties > Environment Variables). If using batch files, restart cmd.exe after setting variables for changes to take effect. Avoid attempting to set via os.environ in Python code or relying on batch file exports without shell restart.