CLI
The ardiq command (a Typer app) ships in the cli
extra — the base pip install ardiq is library-only:
$ pip install 'ardiq[cli]'$ ardiq --helpardiq run
Section titled “ardiq run”Run a worker for the given app.
$ ardiq run MODULE:ATTR [OPTIONS]Argument
Section titled “Argument”| Argument | Description |
|---|---|
MODULE:ATTR | Import path to your Ardiq instance, e.g. example:app or myproject.worker:app. |
ArdiQ imports MODULE (registering every @app.task), looks up ATTR, and runs that app.
The module must be importable from your current working directory / PYTHONPATH.
Options
Section titled “Options”| Option | Alias | Description |
|---|---|---|
--burst | -b | Process everything currently queued, then exit. |
--verbose | -v | DEBUG-level logging, including the Rust core’s logs. |
Examples
Section titled “Examples”$ ardiq run example:app # long-running worker$ ardiq run example:app --burst # drain the queue and exit$ ardiq run myproject.worker:app -v # verbose loggingSignals
Section titled “Signals”ardiq run installs handlers for SIGINT (Ctrl-C) and SIGTERM that call
app.stop(), so the worker shuts down gracefully and lets in-flight tasks settle. See
Running a worker.