Runner Configuration Reference
This reference lists every lemline.* configuration property the Lemline runner reads. Properties that are not listed here are not recognized by Lemline.
Configuration Sources
Lemline reads its configuration from, in order of decreasing priority:
Java system properties:
-Dlemline.database.type=postgresqlEnvironment variables:
LEMLINE_DATABASE_TYPE=postgresqlConfiguration file: a YAML file (see below)
Built-in defaults
The configuration file is the first one found among:
the path given with
--config <path>or-c <path>the path in the
LEMLINE_CONFIGenvironment variable./.lemline.yaml~/.config/lemline/config.yaml~/.lemline.yaml
A path given with --config or LEMLINE_CONFIG must exist, otherwise the command fails. Generate a starting file with lemline config create, and print the effective configuration with lemline config show.
Environment variable names
An environment variable name is the property name in upper case, with every character that is not a letter or a digit replaced by _:
Property | Environment variable |
|---|---|
|
|
|
|
|
|
Settings set by the command
Each command turns on only what it needs, whatever the configuration says:
lemline listenenables every message producer and consumer, the metrics endpoint and the background tasks.lemline gateway startenables the gateway, the commands producer and the lifecycle events producer, and disables every consumer.lemline instance startenables the commands producer and the lifecycle events producer.lemline failures replayenables the commands and events producers.Other commands (
definition,config,migrate) disable messaging, background tasks and the metrics endpoint.
Namespaces
Property | Type | Default | Description |
|---|---|---|---|
| List | - | Namespaces this process works on. When unset, a runner works on the |
Database
Property | Type | Default | Description |
|---|---|---|---|
| String | inferred | Choose |
| String |
| Local file for definitions and durable operations. Relative paths resolve against the process working directory. |
| Boolean |
| Apply database migrations when the runner starts |
| Boolean |
| Baseline an existing, non-empty schema before migrating |
| Boolean |
| Set by the command line; commands that need no database turn it off |
PostgreSQL
Property | Type | Default |
|---|---|---|
| String |
|
| Integer |
|
| String |
|
| String |
|
| String |
|
MySQL
Property | Type | Default |
|---|---|---|
| String |
|
| Integer |
|
| String |
|
| String |
|
| String |
|
Messaging
Property | Type | Default | Description |
|---|---|---|---|
| String | inferred |
|
| String |
| Prefix of destination names. Topics and queues are named |
Channels
Lemline uses four channels:
Channel | Carries |
|---|---|
| Workflow execution steps, processed by any runner |
| Durable operations (waits, retries, schedules, listeners, child workflows) stored by the runner |
| CloudEvents emitted by |
| Workflow and task lifecycle CloudEvents, consumed by lifecycle analytics |
For each <channel> above:
Property | Type | Default | Description |
|---|---|---|---|
| Boolean |
| Publish on this channel. Usually set by the command. |
| Boolean |
| Consume from this channel. Usually set by the command. |
| Integer |
| Maximum number of messages processed in parallel with in-memory messaging. With Kafka, RabbitMQ or PGMQ it is overwritten by |
Kafka
Property | Type | Default | Description |
|---|---|---|---|
| String |
| Bootstrap servers |
| String | - | Kafka |
| String |
| Kafka |
| String | - | SASL username (with the password, configures the PLAIN login module) |
| String | - | SASL password |
For each <channel> (commands, events, cloudevents, lifecycleevents):
Property | Type | Default | Description |
|---|---|---|---|
| Integer |
| Consumer concurrency |
| String |
| Consumer group |
| String |
|
|
Lifecycle events go to a single shared topic:
Property | Type | Default | Description |
|---|---|---|---|
| String |
| Lifecycle events topic |
| String | - | Override of the topic the producer writes to |
| String |
| Dead-letter topic of the lifecycle consumer |
Failed records of the other channels go to <source-topic>.dlq.
RabbitMQ
Property | Type | Default | Description |
|---|---|---|---|
| String |
| Broker host |
| Integer |
| Broker port |
| String |
| Username |
| String |
| Password |
| String |
| Virtual host |
| Boolean | - | Connect with TLS |
For each <channel> (commands, events, cloudevents, lifecycleevents):
Property | Type | Default | Description |
|---|---|---|---|
| Integer |
| Consumer concurrency |
| String | - | Dead-letter queue override |
| String | derived | Queue name override ( |
Lifecycle events:
Property | Type | Default | Description |
|---|---|---|---|
| String |
| Lifecycle events queue |
| String | - | Override of the queue the producer writes to |
| String | - | Override of the exchange the producer writes to |
PGMQ (PostgreSQL Message Queue)
Property | Type | Default |
|---|---|---|
| String |
|
| Integer |
|
| String |
|
| String |
|
| String |
|
For each <channel> (commands, events, cloudevents, lifecycleevents):
Property | Type | Default | Description |
|---|---|---|---|
| Integer |
| Consumer concurrency |
| Integer |
| Seconds a read message stays invisible to other consumers |
| Integer |
| Milliseconds between polls when the queue is empty |
| Integer |
| Messages read per poll |
| Integer |
| Deliveries before a message goes to the dead-letter queue |
Lifecycle events:
Property | Type | Default | Description |
|---|---|---|---|
| String |
| Lifecycle events queue |
| String | - | Override of the queue the producer writes to |
| String | - | Dead-letter queue of the lifecycle consumer |
SQLite
A durable queue stored in one local file, for runners on a single host. Used only when lemline.messaging.type is sqlite.
Property | Type | Default | Description |
|---|---|---|---|
| String |
| Queue file. A relative path is resolved against the working directory of the process. Its parent directory must exist. |
| Integer |
| Seconds a consumer may hold a message before it is delivered again. Set it above the longest time a workflow step can take. |
| Integer |
| Milliseconds between polls when the queue is empty |
| Integer |
| Messages read per poll |
| Integer |
| Deliveries before a message goes to the dead-letter queue |
These settings apply to every channel.
Orchestrator
Property | Type | Default | Description |
|---|---|---|---|
| String |
|
|
Definitions
Property | Type | Default | Description |
|---|---|---|---|
| Duration |
| How often each runner refreshes its cache of workflow definitions from the database |
Background Tasks (Outboxes and Cleanup)
Runners process durable operations stored in the database (waits, retries, schedules, listeners, gateway starts) and delete old rows.
Property | Type | Default | Description |
|---|---|---|---|
| Boolean |
| Run background tasks at all. Set by the command line. |
For each <outbox> in wait, retry, schedule, listener, gateway:
Property | Type | Default | Description |
|---|---|---|---|
| Boolean |
| Run this processor |
| Duration |
| Processing interval |
| Integer |
| Rows processed per run |
| Duration |
| Maximum random delay before the first run, to spread runners apart |
| Duration |
| Base delay before retrying a failed row; doubles on each attempt, with ±20% jitter |
| Integer |
| Attempts before a row is given up |
| Duration |
| Cleanup interval |
| Duration |
| Maximum random delay before the first cleanup |
| Duration |
| Age after which processed rows are deleted |
| Integer |
| Rows deleted per run |
parent and fork only have the enabled and cleanup.* properties.
Durations accept values such as 500ms, 10s, 5m, 1h and 7d.
Metrics and Health
Property | Type | Default | Description |
|---|---|---|---|
| Integer |
| HTTP port of the metrics and health endpoints. |
| String |
| Path of the Prometheus metrics endpoint |
Health checks are served on the same port at /q/health, /q/health/live and /q/health/ready.
Analytics
Property | Type | Default | Description |
|---|---|---|---|
| String |
|
|
| String |
| SQLite analytics file. Relative paths use the process working directory. |
| Boolean |
| Apply analytics migrations at startup |
| Boolean |
| Baseline an existing PostgreSQL analytics schema |
| String |
| |
| Integer |
| |
| String |
| |
| String |
| |
| String |
| |
| String |
|
Gateway
Property | Type | Default | Description |
|---|---|---|---|
| Boolean |
| Start the gRPC gateway. Set by |
| String |
| Bind host |
| Integer |
| Bind port. |
| Boolean |
| Serve gRPC over TLS |
| String | - | Server certificate path (required when TLS is enabled) |
| String | - | Server private key path (required when TLS is enabled) |
| String |
| Client certificate mode: |
| String | - | Trust store for client certificates |
| String | - | Trust store password |
| Boolean |
| Require a JWT bearer token (requires TLS) |
| String | - | Expected token issuer |
| String | - | JWKS URL used to verify tokens |
| String |
| Claim holding the scopes |
| String |
| Claim holding the allowed namespaces |
| Boolean |
| Enable CORS for browser clients |
| String |
| Allowed origins |
| String |
| Allowed methods |
| String |
| Allowed request headers |
| Integer |
| Polling interval of watch streams, in milliseconds |
| Integer |
| Rows read per watch poll |
Security Configuration
There are no lemline.security.* settings. Workflow secrets are read from environment variables named after each secret; see Secrets Reference.
Script Runtimes
run.script tasks call local executables. Set them with the lemline.python.exec and lemline.node.exec system properties, or with the LEMLINE_PYTHON_EXEC and LEMLINE_NODE_EXEC environment variables. They are not read from the configuration file. Defaults: python3 and node.
Logging
Logging uses the standard Quarkus properties. They are not read from the Lemline configuration file, which only accepts lemline.* settings: set them as environment variables or -D system properties, for example:
From the command line, --debug, --info, --warn and --error set the log level, and --json switches to JSON logs. The default level is ERROR.
Example
Keep passwords out of the file: set them with environment variables such as LEMLINE_DATABASE_POSTGRESQL_PASSWORD.