Windows without Docker
This page explains how to run the QALITA CLI and worker directly on a Windows host, when Docker is not available.
Native Windows is supported on a best effort basis: it is meant for job mode (debugging a pack close to its data) and for small workers. The recommended production setup stays the Docker image on Linux. Windows is not covered by the CLI's CI.
Native Windows jobs need QALITA CLI 3.2.0 or later: earlier releases fail while unpacking the pack.
When to use it
- Docker (or WSL) cannot be installed on the host, but the host is the one that can reach the source.
- You want to run a pack in job mode to debug it, and see its logs and workspace on the spot.
- You need a small, always-on worker that serves routines for sources only this host can reach.
Requirements
| Component | Requirement | Why |
|---|---|---|
| Windows | 64-bit Windows 10 / 11 or Windows Server 2016 and later | Dependencies built with Rust (uv, polars, cryptography) target Windows 10 / Server 2016 and later. Windows 8.1 / Server 2012 R2 are unsupported and untested. Windows 7 / Server 2008 R2 cannot run Python 3.10. |
| Python | 3.10 to 3.13, 64-bit, from the python.org installer, installed for all users with the py launcher | 3.12 is recommended: it satisfies the CLI and every official pack. Packs find their interpreter with py -0p, which only lists all-users installs and your own. |
| PowerShell | Windows PowerShell 5.1 (built in) | Official packs run through run.bat, which calls powershell -ExecutionPolicy Bypass -File run.ps1. |
| Network | The platform API (REST), plus gRPC for worker mode; PyPI or an internal mirror | The CLI install and the first run of each pack version download Python packages. See Network. |
| CPU without AVX2 | Add polars[rtcompat] to the CLI environment | The default polars build needs AVX2. See Known limits for packs. |
| Local UI | Optional: Node.js 20.9 or later | Only for qalita --ui. |
| Git for Windows | Optional | Only for custom packs that ship nothing but run.sh. See Debug a pack in job mode. |
Do not use:
- the Microsoft Store Python: it is installed per user, invisible to a service account, and redirects writes under
AppDatato a private copy; - the embeddable package: it has no
venvmodule, andrun.ps1refuses it; - a 32-bit Python: several dependencies (cryptography, gevent, greenlet, psycopg2-binary, pyarrow...) publish no 32-bit Windows wheels, so pip tries to compile them and fails.
Install
Always install the released package that matches your platform version (qalita==X.Y.Z), never a checkout of the source repository. A checkout reports version 0.0.0-dev, has no built web UI, and may try to compile native dependencies.
1. Python
Run the python.org installer for Python 3.12 (64-bit), choose Customize installation, keep the py launcher (for all users), and tick Install Python 3.12 for all users on the advanced options page. The unattended equivalent is:
.\python-3.12.10-amd64.exe /quiet InstallAllUsers=1 Include_launcher=1 InstallLauncherAllUsers=1
Check the result in a new terminal. The 3.12 entry must point to C:\Program Files\Python312 and must not end in -32:
py -0p
2a. For your own account, with pipx
Use this for interactive work, such as debugging packs in job mode under your own account.
py -3.12 -m pip install --user pipx
py -3.12 -m pipx ensurepath
# Open a new terminal, then:
pipx install qalita==X.Y.Z
qalita --help
- Upgrade with
pipx install --force qalita==X.Y.Z. - On a CPU without AVX2:
pipx inject qalita "polars[rtcompat]".
2b. For a service account, with a venv
Use this for a worker that runs as a scheduled task. pipx installs into the profile of whoever runs it, which other accounts cannot reach, so the worker gets its own virtual environment instead. In an elevated PowerShell, after creating and restricting C:\qalita as described in Paths and permissions:
py -3.12 -m venv C:\qalita\venv
C:\qalita\venv\Scripts\python -m pip install qalita==X.Y.Z
C:\qalita\venv\Scripts\qalita --help
On a CPU without AVX2, also run C:\qalita\venv\Scripts\python -m pip install "polars[rtcompat]".
Without internet access
Two dependencies of the CLI (hdfs and docopt) are only published as source archives. Build their wheels first (they are pure Python), then download everything else as Windows wheels. On a connected machine with Python 3.12 and pip, any OS:
python -m pip wheel hdfs docopt --no-deps -w wheels
python -m pip download qalita==X.Y.Z -d wheels --find-links wheels --only-binary=:all: --platform win_amd64 --python-version 3.12
Copy the wheels folder to the Windows host, then install from it:
C:\qalita\venv\Scripts\python -m pip install --no-index --find-links C:\path\to\wheels qalita==X.Y.Z
This covers the CLI only. Packs still need PyPI or a mirror on their first run (see Known limits).
Paths and permissions
Keep QALITA_HOME short, for example C:\qalita\home. Pack virtual environments live in %QALITA_HOME%\jobs\<pack>_py<version>_venv and job workspaces in %QALITA_HOME%\jobs\<timestamp>_<random>: under the default C:\Users\<user>\.qalita, deep package trees can exceed the 260-character Windows path limit. Alternatively, an administrator can lift that limit by setting LongPathsEnabled to 1 under HKLM\SYSTEM\CurrentControlSet\Control\FileSystem (or with the Enable Win32 long paths Group Policy).
Restrict the whole tree. QALITA_HOME holds the worker token (.worker) and the source credentials (sources-conf.yaml), and a folder created under C:\ is readable by every local user by default, unlike a user profile. Create the folders and keep only Administrators, SYSTEM and the worker account, in an elevated PowerShell:
New-Item -ItemType Directory -Force C:\qalita\home, C:\qalita\logs | Out-Null
icacls C:\qalita /inheritance:r /grant:r '*S-1-5-32-544:(OI)(CI)F' '*S-1-5-18:(OI)(CI)F' '<account>:(OI)(CI)M'
Replace <account> with the account that runs the worker (for example .\svc-qalita or DOMAIN\svc-qalita). The SIDs S-1-5-32-544 (Administrators) and S-1-5-18 (SYSTEM) make the command work on any Windows display language.
Network
Set these variables where the worker runs (in your terminal, or in the wrapper script): packs inherit the worker's environment, so their installs use the same settings.
| Need | Variables |
|---|---|
| Platform certificate signed by a private CA | REQUESTS_CA_BUNDLE (REST) and GRPC_DEFAULT_SSL_ROOTS_FILE_PATH (gRPC), see Environment Variables |
| gRPC endpoint not derived from the API URL | QALITA_GRPC_ENDPOINT, see Environment Variables and gRPC endpoint resolution |
| Internal package mirror | PIP_INDEX_URL for pip, UV_DEFAULT_INDEX for uv (official packs use both) |
| Mirror or proxy with a private CA | PIP_CERT for pip; UV_SYSTEM_CERTS=true (Windows certificate store) or SSL_CERT_FILE for uv. uv releases older than UV_SYSTEM_CERTS read UV_NATIVE_TLS=true |
| HTTP proxy | HTTPS_PROXY, and NO_PROXY for the hosts reached directly |
Job mode only talks REST. Worker mode also opens a gRPC channel (and falls back to REST polling if it cannot).
Configure and log in
Configuration is the same as on Linux: see the Quick Start, which gives the PowerShell form of every command. In short, set QALITA_WORKER_NAME, QALITA_WORKER_MODE, QALITA_WORKER_ENDPOINT and QALITA_WORKER_TOKEN (and QALITA_HOME), then run qalita worker login.
A job needs the source in this worker's sources-conf.yaml with its platform id: add it with qalita source add, then publish it with qalita source push.
Debug a pack in job mode
$env:QALITA_HOME = "$env:USERPROFILE\qalita-debug" # your own home, never the worker's C:\qalita\home
$env:QALITA_WORKER_NAME = 'windows-debug'
$env:QALITA_WORKER_ENDPOINT = 'https://platform.example.com'
$env:QALITA_WORKER_TOKEN = '<token>'
$env:QALITA_KEEP_JOB_WORKSPACE = '1'
qalita worker -m job run -s <source_id> -p <pack_id>
QALITA_HOMEis a home of your own, in your profile, which other standard accounts cannot read. Never point it at the scheduled worker'sC:\qalita\home: each job-mode run logs in again and rewrites%QALITA_HOME%\.workerwith this worker's identity, and the ACL only lets the worker account in. If package installs hit the 260-character path limit, enable long paths (see Paths and permissions).qalita source listandqalita pack listgive the ids. Job mode currently always runs the latest version of the pack:-pvis ignored.QALITA_KEEP_JOB_WORKSPACE=1keeps every job workspace;QALITA_DEBUG_KEEP_FAILED_JOBS=1keeps only the failed ones. The workspace is%QALITA_HOME%\jobs\<timestamp>_<random>\<pack>_pack, with the pack'slogs.txtinside.- The first run of a pack version creates its virtual environment and installs its dependencies, so it is much slower than the next ones.
Which script runs the pack. On Windows the worker runs, in this order of preference: run.bat (through cmd.exe), else run.ps1 (through powershell -ExecutionPolicy Bypass), else run.sh through the first bash (or sh) on PATH.
- Official packs ship
run.batandrun.ps1. - Packs created with
qalita pack initfrom QALITA CLI 3.2.0 or later also include them. - For an older custom pack, copy
scripts/run.ps1andscripts/run.batfrom the public qalita/packs repository next to itsrun.sh:qalita pack pushonly requiresrun.sh. - A pack with only
run.shneeds Git for Windows, and Git'sbinfolder must come beforeC:\Windows\System32onPATH:System32\bash.exeis the WSL launcher. A Linux-specificrun.sh(bin/python,apt...) still fails under Git Bash.
If the scheduled worker runs on the same host, keep the debug session apart: its own QALITA_HOME, as above, and its own worker name, with its own qalita worker login. Run one worker per QALITA_HOME.
Run a worker for routines
Routines are scheduled by the platform and run by a worker in worker mode, so the worker must stay up: a host that sleeps or hibernates misses them. The setup below starts the worker at boot under a dedicated account, with Task Scheduler.
Wrapper script
Save this as C:\qalita\worker.cmd:
@echo off
setlocal
set "QALITA_HOME=C:\qalita\home"
set "QALITA_WORKER_NAME=windows-worker-1"
set "QALITA_WORKER_MODE=worker"
set "QALITA_WORKER_ENDPOINT=https://platform.example.com"
set "QALITA_WORKER_TOKEN=<token>"
set "PYTHONIOENCODING=utf-8"
:run
"C:\qalita\venv\Scripts\qalita.exe" worker run >> C:\qalita\logs\worker.log 2>&1
ping -n 61 127.0.0.1 >nul
goto run
- The loop starts the worker again, one minute after it exits for any reason. The pause uses
pingbecausetimeout.exefails without a console. PYTHONIOENCODING=utf-8writes the redirected output in UTF-8: without it, Python uses the ANSI code page (such as cp1252) and characters outside it break the log.- Add the network variables you need with more
setlines. - The token is in this file: this is why the ACL on
C:\qalitamatters. worker.loggrows without limit: archive or truncate it from time to time while the task is stopped.
The worker registers itself on the platform when it starts. It only runs tasks on the sources listed in its own C:\qalita\home\sources-conf.yaml with their platform id, so declare them first: with the same variables set (in particular QALITA_HOME), run qalita worker login, qalita source add and qalita source push from C:\qalita\venv\Scripts.
Scheduled task
In an elevated PowerShell:
$action = New-ScheduledTaskAction -Execute 'C:\qalita\worker.cmd'
$trigger = New-ScheduledTaskTrigger -AtStartup
$settings = New-ScheduledTaskSettingsSet -ExecutionTimeLimit ([TimeSpan]::Zero) -MultipleInstances IgnoreNew -RestartCount 3 -RestartInterval (New-TimeSpan -Minutes 1) -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries
$cred = Get-Credential -Message 'Account that runs the QALITA worker'
Register-ScheduledTask -TaskName 'QALITA worker' -Action $action -Trigger $trigger -Settings $settings -User $cred.UserName -Password $cred.GetNetworkCredential().Password -RunLevel Limited
Start-ScheduledTask -TaskName 'QALITA worker'
Get-Credentialkeeps the password out of the command line and the PowerShell history.-ExecutionTimeLimit ([TimeSpan]::Zero)removes the default 3-day limit, after which Task Scheduler would stop the worker.-MultipleInstances IgnoreNewnever starts a second copy.- The restart settings only apply when Task Scheduler fails to start the task. A worker that exits is brought back by the loop in
worker.cmd. - The account needs the Log on as a batch job right (Local Security Policy, User Rights Assignment), and a standard (non-administrator) account is enough.
Stop and upgrade
In an elevated PowerShell (-IncludeUserName needs it):
Stop-ScheduledTask -TaskName 'QALITA worker'
Get-Process qalita -IncludeUserName -ErrorAction SilentlyContinue
Stopping the task ends worker.cmd, but the worker and a running pack can outlive it. If the list still shows a qalita process under the worker account, end that tree by its Id: taskkill /PID <Id> /T /F. Do not use taskkill /IM qalita.exe: it ends every qalita on the host, such as a job-mode debug session. Then upgrade with C:\qalita\venv\Scripts\python -m pip install qalita==X.Y.Z and start the task again.
Known limits
- Operating system: 64-bit Windows 10 / 11 or Server 2016 and later only. Windows 8.1 / Server 2012 R2 are unsupported and untested; Windows 7 / Server 2008 R2 cannot run the CLI.
- Python: 3.10 to 3.13, 64-bit, installed for all users. Official packs have their own ranges (for example, the profiling pack needs 3.12 or later and the Soda pack 3.11 or 3.12): 3.12 satisfies all of them.
- Path length: keep
QALITA_HOMEshort or enable long paths, see Paths and permissions. - Script policy: a PowerShell execution policy set by Group Policy (such as
AllSignedor Turn on Script Execution disabled) overrides the-ExecutionPolicy Bypassthat the worker andrun.batpass, and so do AppLocker or WDAC script rules. Official packs then cannot runrun.ps1: IT must allow scripts under%QALITA_HOME%\jobs. - Pack dependencies: each pack builds its virtual environment from a host Python on its first run and downloads its dependencies from PyPI or the configured mirror. There is no offline install of pack dependencies out of the box.
- CPU without AVX2:
polars[rtcompat]fixes the CLI environment only. Packs that use polars install their own copy in their virtual environment and may fail the same way. - Packs with only
run.shneed Git Bash, and Linux-specific scripts fail. Copy the official Windows runners, see Debug a pack in job mode. - Local UI:
qalita --uineeds Node.js 20.9 or later. - File and folder sources use paths as the worker host sees them. For network shares, see File sources; on Windows, use UNC paths (
\\server\share\...) that the worker's account can read, because mapped drive letters belong to a logon session and a scheduled task does not see them. - CLI version: native Windows jobs need QALITA CLI 3.2.0 or later; earlier releases fail while unpacking the pack.
- No Windows CI: the Windows-specific behaviour is covered by simulated tests only.
- Error hints: the out-of-memory and signal hints shown when a pack dies are Linux-only.
Why no standalone executable?
A single qalita.exe would not remove the Python prerequisite: each pack creates its own virtual environment from a Python installed on the host. It would also need a Windows build and code-signing pipeline. pipx (for your own account) or a dedicated venv (for a service account) already gives an isolated install of the CLI.