Skip to content

CLI

The ardiq command (a Typer app) ships in the cli extra — the base pip install ardiq is library-only:

Terminal window
$ pip install 'ardiq[cli]'
$ ardiq --help

Run a worker for the given app.

Terminal window
$ ardiq run MODULE:ATTR [OPTIONS]
ArgumentDescription
MODULE:ATTRImport 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.

OptionAliasDescription
--burst-bProcess everything currently queued, then exit.
--verbose-vDEBUG-level logging, including the Rust core’s logs.
Terminal window
$ ardiq run example:app # long-running worker
$ ardiq run example:app --burst # drain the queue and exit
$ ardiq run myproject.worker:app -v # verbose logging

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.