setVariable

fun setVariable(key: String, value: String, description: String? = null)

Stores an Airflow variable, replacing any existing value.

The value is stored as-is. Serialize structured data (for example to JSON) before storing it.

Parameters

key

Variable key.

value

Value to store.

description

Description of the variable.

Throws

if the API call fails.