.. _cosmos-config: Cosmos Config ============= This page lists all available `Apache Airflow® `_ configurations that affect Astronomer Cosmos behavior. They can be set in the ``airflow.cfg`` file or using environment variables. .. note:: For more information, see `Setting Configuration Options `_. **Sections:** - [cosmos] - [openlineage] [cosmos] ~~~~~~~~ .. _cache_dir: `cache_dir`_: The directory used for caching Cosmos data. - Default: ``{TMPDIR}/cosmos`` (where ``{TMPDIR}`` is the system temporary directory) - Environment Variable: ``AIRFLOW__COSMOS__CACHE_DIR`` .. _enable_cache: `enable_cache`_: Enable or disable caching of Cosmos data. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_CACHE`` .. _enable_dag_versioning: `enable_dag_versioning`_: **Airflow 3+ only:** when enabled (default), Cosmos computes a hash of the dbt project directory and appends it to the DAG's ``doc_md`` so that Airflow 3's DAG versioning can detect when dbt project files change. Under ``LoadMode.DBT_MANIFEST``, the manifest file's own content checksum is folded into this hash as well, since the manifest conventionally lives under ``target/``, which is excluded from the directory walk. On Airflow 2.x, ``doc_md`` is not modified for this purpose (the setting has no effect there). When disabled on Airflow 3+, the hash is not computed (faster DAG parsing) and DAG versioning will not reflect dbt project content changes from this mechanism. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_DAG_VERSIONING`` .. _project_hash_excluded_dirs: `project_hash_excluded_dirs`_: Comma-separated list of additional directory names that Cosmos skips when hashing the dbt project directory (used by ``enable_dag_versioning`` and the partial-parse/dbt-ls cache keys). Generated folders such as ``target/`` and ``dbt_packages/`` can be large, and reading them on every DAG parse is expensive on network-backed storage. This setting is additive: ``.git``, ``target``, ``dbt_packages`` and ``logs`` are always excluded, regardless of this value. A matching directory name is skipped wherever it appears in the project tree. Cosmos emits a ``UserWarning`` (but does not block) if this includes a dbt project content directory, such as ``models`` or ``macros``, since excluding one means real changes there won't be detected. - Default: unset (only the always-excluded ``.git, target, dbt_packages, logs`` apply) - Environment Variable: ``AIRFLOW__COSMOS__PROJECT_HASH_EXCLUDED_DIRS`` .. _enable_cache_dbt_ls: `enable_cache_dbt_ls`_: Enable or disable caching of the dbt ls command in case using ``LoadMode.DBT_LS`` in an Airflow Variable. Disabling this causes ``dbt ls`` to run on every DAG parse, which can significantly increase scheduler DAG processing and task queueing times on deployments with many Cosmos DAGs. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_CACHE_DBT_LS`` .. _enable_cache_dbt_yaml_selectors: `enable_cache_dbt_yaml_selectors`_: Enable or disable caching of the YAML selectors in case using ``LoadMode.DBT_MANIFEST`` with ``RenderConfig.selector`` in an Airflow Variable. Disabling this causes the YAML selectors to be reparsed on every DAG parse, which can increase scheduler DAG processing time on deployments with many Cosmos DAGs that use ``RenderConfig.selector``. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_CACHE_DBT_YAML_SELECTORS`` .. _enable_lax_selector_parsing: `enable_lax_selector_parsing`_: Enable or disable lax parsing of YAML selectors when using ``LoadMode.DBT_MANIFEST`` with ``RenderConfig.selector``. Lax parsing instructs the parser to log errors for selectors with malformed YAML structure instead of raising an exception. - Default: ``False`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_LAX_SELECTOR_PARSING`` .. _enable_dags_folder_exclusion_from_dbt: `enable_dags_folder_exclusion_from_dbt`_: dbt-core discovers plugins by importing every top-level ``dbt_*`` module reachable from ``sys.path`` / ``PYTHONPATH``. Airflow puts its DAGs folder on that path, so a DAG file named ``dbt_*.py`` gets imported as a side effect of Cosmos running dbt, leaking or duplicating DAGs (in-process) or crashing the dbt command (subprocess). When enabled, Cosmos removes the Airflow DAGs folder from dbt's import path for the duration of each dbt invocation. Genuinely installed dbt plugins (which live in site-packages, not the DAGs folder) are unaffected. .. note:: Disable this only if you intentionally keep a real dbt plugin named ``dbt_*`` inside the DAGs folder and need dbt to keep discovering it. While this setting is enabled, such a plugin will not be found. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_DAGS_FOLDER_EXCLUSION_FROM_DBT`` .. _enable_hierarchical_naming_for_group_nodes_by_folder: `enable_hierarchical_naming_for_group_nodes_by_folder`_: Only relevant when ``RenderConfig.group_nodes_by_folder`` is enabled. When enabled, folder task groups are keyed by their full folder path, so folders that share a leaf name under different parents (e.g. ``staging/aurora`` and ``marts/aurora``) render as distinct task groups instead of collapsing into the first one created. Disabled by default to preserve the existing task-group ids — enabling it changes those ids, which is a breaking change for DAGs that reference Cosmos task groups by id. This is expected to become the default in Cosmos 2.0. Being an Airflow configuration setting, it applies **globally to every Cosmos DAG** in the deployment and cannot be configured per DAG (unlike the ``RenderConfig.group_nodes_by_folder`` option itself). - Default: ``False`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_HIERARCHICAL_NAMING_FOR_GROUP_NODES_BY_FOLDER`` .. _enable_semantic_metric_view_reclassification: `enable_semantic_metric_view_reclassification`_: Opt-in. Reclassifies adapter-native semantic metric views (``config.materialized: metric_view`` on Databricks, ``semantic_view`` on Snowflake) from a plain ``model`` node to ``DbtResourceType.SEMANTIC_METRIC_VIEW``. This changes the task's id (adds a ``_semantic_metric_run`` suffix) and operator class (a ``DbtSemanticMetricView*`` operator instead of ``DbtRun*``; the underlying dbt command is unchanged), and makes ``resource_type:model`` selectors stop matching the node in favor of ``resource_type:semantic_metric_view``. .. note:: Enabling this changes the task ids of existing ``metric_view`` and ``semantic_view`` models. See :doc:`Managing semantic metric views `. - Default: ``False`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_SEMANTIC_METRIC_VIEW_RECLASSIFICATION`` .. _enable_cache_partial_parse: `enable_cache_partial_parse`_: Enable or disable caching of dbt partial parse files in the local disk. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_CACHE_PARTIAL_PARSE`` .. _enable_cache_package_lockfile: `enable_cache_package_lockfile`_: Enable or disable caching of dbt project package lockfile. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_CACHE_PACKAGE_LOCKFILE`` .. _propagate_logs: `propagate_logs`_: Whether to propagate logs in the Cosmos module. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__PROPAGATE_LOGS`` .. _rich_logging: `rich_logging`_: Enable a custom logger implementation that adds ``(astronomer-cosmos)`` to each log message. See :ref:`logging` for more details. - Default: ``False`` - Environment Variable: ``AIRFLOW__COSMOS__RICH_LOGGING`` .. _dbt_docs_projects: `dbt_docs_projects`_: (Introduced in Cosmos 1.11.0; applicable to Airflow >= 3.1): JSON mapping configuring one or more dbt docs projects for the Airflow 3 UI plugin. Structure: mapping of slug to a dict with keys ``dir`` (required), ``index`` (optional, default ``index.html``), ``name`` (optional, label in the menu), and ``conn_id`` (optional connection to read remote storage). A "slug" here means a short, URL-safe identifier you choose for each docs project. It's used in the path segment ``/cosmos//…`` and in the UI menu label mapping. Prefer lowercase letters, numbers, and hyphens/underscores (e.g., core, mart, jaffle-shop). Example: .. code-block:: ini [cosmos] dbt_docs_projects = { "core": {"dir": "/path/to/core/target", "index": "index.html", "name": "dbt Docs (Core)"}, "mart": {"dir": "s3://bucket/path/to/mart/target", "conn_id": "aws_default", "name": "dbt Docs (Mart)"} } Environment Variable: ``AIRFLOW__COSMOS__DBT_DOCS_PROJECTS`` .. code-block:: bash export AIRFLOW__COSMOS__DBT_DOCS_PROJECTS='{"core":{"dir":"/path/to/core/target","index":"index.html","name":"dbt Docs (Core)"},"mart":{"dir":"s3://bucket/path/to/mart/target","conn_id":"aws_default","name":"dbt Docs (Mart)"}}' .. _dbt_docs_dir: `dbt_docs_dir`_: (Applicable to Airflow 2): The directory path for dbt documentation. - Default: ``None`` - Environment Variable: ``AIRFLOW__COSMOS__DBT_DOCS_DIR`` .. _dbt_docs_conn_id: `dbt_docs_conn_id`_: (Applicable to Airflow 2): The connection ID for dbt documentation. - Default: ``None`` - Environment Variable: ``AIRFLOW__COSMOS__DBT_DOCS_CONN_ID`` .. _dbt_docs_index_file_name: `dbt_docs_index_file_name`_: (Applicable to Airflow 2): The filename of the dbt docs index file within ``dbt_docs_dir``. - Default: ``index.html`` - Environment Variable: ``AIRFLOW__COSMOS__DBT_DOCS_INDEX_FILE_NAME`` .. _default_copy_dbt_packages: `default_copy_dbt_packages`_: (Introduced in Cosmos 1.10.0): By default, Cosmos 1.x either installs ``dbt deps`` or creates a symbolic link to the original ``dbt_packages`` folder. This configuration changes this behaviour, by copying the dbt project ``dbt_packages`` instead of creating symbolic links, so Cosmos can run ``dbt deps`` incrementally. Can be overridden at a ``DbtDag`` and ``DbtTaskGroup``, via ``ProjectConfig.copy_dbt_packages``, or at an operator level, via ``operator_args={"copy_dbt_packages"}``. - Default: ``False`` - Environment Variable: ``AIRFLOW__COSMOS__DEFAULT_COPY_DBT_PACKAGES`` .. _enable_cache_profile: `enable_cache_profile`_: Enable caching for the DBT profile. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_CACHE_PROFILE`` .. _pre_dbt_fusion: `pre_dbt_fusion`_: From Cosmos 1.11, we have introduced support for dbt Fusion. Some of the changes may not be compatible with legacy versions of dbt-core. If you find any issues on how Cosmos interacts with older versions of dbt-core you can use this configuration. - Default: ``False`` - Environment Variable: ``AIRFLOW__COSMOS__PRE_DBT_FUSION`` .. _profile_cache_dir_name: `profile_cache_dir_name`_: Folder name to store the DBT cached profiles. This will be a sub-folder of ``cache_dir`` - Default: ``profile`` - Environment Variable: ``AIRFLOW__COSMOS__PROFILE_CACHE_DIR_NAME`` .. _virtualenv_max_retries_lock: `virtualenv_max_retries_lock`_: When using ``ExecutionMode.VIRTUALENV`` and persisted virtualenv directories (``virtualenv_dir`` argument), users can define how many seconds Cosmos waits for the lock to be released. - Default: ``120`` - Environment Variable: ``AIRFLOW__COSMOS__VIRTUALENV_MAX_RETRIES_LOCK`` .. _remote_cache_dir: `remote_cache_dir`_: The remote directory to store the dbt cache. Starting with Cosmos 1.6.0, you can store the `dbt ls` output as cache in a remote location (an alternative to the Variable cache approach released previously since Cosmos 1.5.0) using this configuration. The value for the remote cache directory can be any of the schemes that are supported by the `Airflow Object Store `_ feature (e.g. ``s3://your_s3_bucket/cache_dir/``, ``gs://your_gs_bucket/cache_dir/``, ``abfs://your_azure_container/cache_dir``, etc.) This is an experimental feature available since Cosmos 1.6 to gather user feedback and will be merged into the ``cache_dir`` setting in upcoming releases. Using a remote cache moves the read off the Airflow metadata database but adds network latency on every DAG parse (observed at roughly 2 to 4 seconds per parse on busy deployments). Prefer the default Variable-backed cache unless you specifically need the cache to be shared across deployments. - Default: ``None`` - Environment Variable: ``AIRFLOW__COSMOS__REMOTE_CACHE_DIR`` .. _remote_cache_dir_conn_id: `remote_cache_dir_conn_id`_: The connection ID for the remote cache directory. If this is not set, the default Airflow connection ID identified for the scheme will be used. - Default: ``None`` - Environment Variable: ``AIRFLOW__COSMOS__REMOTE_CACHE_DIR_CONN_ID`` .. _remote_target_path: `remote_target_path`_: (Introduced since Cosmos 1.7.0) The path to the remote target directory. This is the directory designated to remotely copy & store in the files generated and stored by dbt in the dbt project's target directory. While this remote path is intended to copy files from the dbt project’s target directory, Cosmos currently only supports copying files from the ``compiled`` directory within the ``target`` folder — and only when the execution mode is set to ``ExecutionMode.AIRFLOW_ASYNC``. Future releases will add support for copying additional files from the target directory. The value for the remote target path can be any of the schemes that are supported by the `Airflow Object Store `_ feature (e.g. ``s3://your_s3_bucket/target_dir/``, ``gs://your_gs_bucket/target_dir/``, ``abfs://your_azure_container/cache_dir``, etc.) - Default: ``None`` - Environment Variable: ``AIRFLOW__COSMOS__REMOTE_TARGET_PATH`` .. _remote_target_path_conn_id: `remote_target_path_conn_id`_: (Introduced since Cosmos 1.7.0) The connection ID for the remote target path. If this is not set, the default Airflow connection ID identified for the scheme will be used. - Default: ``None`` - Environment Variable: ``AIRFLOW__COSMOS__REMOTE_TARGET_PATH_CONN_ID`` .. _enable_setup_async_task: `enable_setup_async_task`_: (Introduced in Cosmos 1.9.0): Enables a setup task for ``ExecutionMode.AIRFLOW_ASYNC`` to generate SQL files and upload them to a remote location (S3/GCS), preventing the ``run`` command from being executed on every node. You need to specify ``remote_target_path_conn_id`` and ``remote_target_path`` configuration to upload the artifact to the remote location. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_SETUP_ASYNC_TASK`` .. _enable_teardown_async_task: `enable_teardown_async_task`_: (Introduced in Cosmos 1.9.0): Enables a teardown task for ``ExecutionMode.AIRFLOW_ASYNC`` to delete the SQL files from remote location (S3/GCS). You need to specify ``remote_target_path_conn_id`` and ``remote_target_path`` configuration to delete the artifact from the remote location. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_TEARDOWN_ASYNC_TASK`` .. _upload_sql_to_xcom: `upload_sql_to_xcom`_: (Introduced in Cosmos 1.11.0): Enable this if the setup async task is enabled for ``ExecutionMode.AIRFLOW_ASYNC`` and you want to upload the compiled SQL to Airflow XCom instead of a remote location (e.g., S3 or GCS). - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__UPLOAD_SQL_TO_XCOM`` .. _use_dataset_airflow3_uri_standard: `use_dataset_airflow3_uri_standard`_: (Introduced in Cosmos 1.10.0): Changes Cosmos Dataset (Asset) URIs to be Airflow 3 compliant. Since this would be a breaking change, it is False by default in Cosmos 1.x. .. note:: The deprecated key ``enable_dataset_airflow3_uri`` is also accepted and takes precedence if set. - Default: ``False`` - Environment Variable: ``AIRFLOW__COSMOS__USE_DATASET_AIRFLOW3_URI_STANDARD`` .. _enable_dataset_alias: `enable_dataset_alias`_: Enable or disable Airflow Dataset alias support when emitting datasets from Cosmos operators. When disabled on Airflow 3+, dataset emission will fail with an error. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_DATASET_ALIAS`` .. _enable_uri_xcom: `enable_uri_xcom`_: When enabled, Cosmos operators push outlet dataset URIs to XCom under the key ``uri`` after each task run. Useful for downstream tasks or external systems that need to know which datasets were produced. - Default: ``False`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_URI_XCOM`` .. _enable_memory_optimised_imports: `enable_memory_optimised_imports`_: (Introduced in Cosmos 1.10.1): On Cosmos versions earlier than 1.14.0, eager imports in ``cosmos/__init__.py`` exposed all Cosmos classes at the top level, which could significantly increase memory usage—even when Cosmos was just installed but not actively used. This option allowed disabling those eager imports to reduce memory footprint. When enabled, users had to access Cosmos classes via their full module paths, avoiding the overhead of importing unused modules and classes. - Default: ``False`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_MEMORY_OPTIMISED_IMPORTS`` .. note:: Since Cosmos 1.14.0, all imports in ``cosmos/__init__.py`` are lazy by default — modules are only loaded on first access. This provides the same memory optimization automatically, without requiring users to change their import paths. On 1.14.0 and newer, this setting is accepted but has no effect. The guidance below is relevant only for users on Cosmos versions earlier than 1.14.0. When enabled, import Cosmos classes via their full module paths: .. literalinclude:: ../../../dev/dags/basic_cosmos_dag_full_module_path_imports.py :language: python :start-after: [START cosmos_explicit_imports] :end-before: [END cosmos_explicit_imports] as opposed to the following approach you might have when this option is disabled (default): .. literalinclude:: ../../../dev/dags/basic_cosmos_dag.py :language: python :start-after: [START cosmos_init_imports] :end-before: [END cosmos_init_imports] .. _enable_telemetry: `enable_telemetry`_: Enable or disable Cosmos anonymous usage telemetry. Telemetry data is used to understand how Cosmos is used and to improve the project. No personally identifiable information is collected. Telemetry can also be disabled by setting the ``DO_NOT_TRACK`` or ``SCARF_NO_ANALYTICS`` environment variables to a truthy value; any of the three knobs being set will suppress telemetry. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_TELEMETRY`` .. _enable_debug_mode: `enable_debug_mode`_: Enable or disable debug mode. When enabled, Cosmos will track memory utilization for its tasks and push the peak memory usage (in MB) to XCom under the key ``cosmos_debug_max_memory_mb``. This is useful for profiling and optimizing resource allocation for dbt tasks. Requires ``psutil`` to be installed. - Default: ``False`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_DEBUG_MODE`` .. _debug_memory_poll_interval_seconds: `debug_memory_poll_interval_seconds`_: The interval (in seconds) at which memory utilization is polled when debug mode is enabled. Lower values provide more accurate peak memory measurements but may add slight overhead. - Default: ``0.5`` - Environment Variable: ``AIRFLOW__COSMOS__DEBUG_MEMORY_POLL_INTERVAL_SECONDS`` .. _enable_orjson_parser: `enable_orjson_parser`_: (Experimental, introduced in Cosmos 1.15.0) When enabled, Cosmos uses `orjson `_ to parse ``manifest.json`` files instead of the standard library ``json`` module. orjson is a fast, Rust-based JSON library that can significantly reduce DAG parsing time for large dbt projects with big manifests. Benchmarks show up to 40% faster parsing compared to the standard ``json`` module, with the improvement scaling with manifest file size. Requires the optional ``orjson`` dependency: ``pip install orjson``. If this setting is ``True`` but ``orjson`` is not installed, Cosmos raises a ``CosmosLoadDbtException`` at parse time with an actionable error message. - Default: ``False`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_ORJSON_PARSER`` .. _watcher_dbt_producer_queue: `watcher_dbt_producer_queue`_: (Introduced in Cosmos 1.16.0) When using watcher execution mode, specifies the Airflow worker queue that ``DbtProducerWatcherOperator`` tasks are assigned to. Producer tasks execute a full ``dbt build`` and typically require high-memory workers. This setting takes precedence over any ``queue`` set directly on the operator (e.g. via ``setup_operator_args``). If unset, falls back to the deprecated :ref:`watcher_dbt_execution_queue` for backwards compatibility. - Default: ``None`` - Environment Variable: ``AIRFLOW__COSMOS__WATCHER_DBT_PRODUCER_QUEUE`` .. _watcher_dbt_consumer_queue: `watcher_dbt_consumer_queue`_: (Introduced in Cosmos 1.16.0) When using watcher execution mode, specifies the Airflow worker queue that ``DbtConsumerWatcherSensor`` tasks are assigned to on their initial (sensor) run. On the first attempt, consumer sensors are lightweight — they simply wait for the producer task to complete — so they can run on low-resource workers. This setting takes precedence over any ``queue`` set directly on the operator. This is a new queue introduced in Cosmos 1.16.0 and has no equivalent in the deprecated :ref:`watcher_dbt_execution_queue`; there is no backwards-compatible fallback for it. - Default: ``None`` - Environment Variable: ``AIRFLOW__COSMOS__WATCHER_DBT_CONSUMER_QUEUE`` .. _watcher_dbt_retry_queue: `watcher_dbt_retry_queue`_: (Introduced in Cosmos 1.16.0; previously ``watcher_dbt_execution_queue`` in 1.14.0) When using watcher execution mode, specifies the Airflow worker queue that ``DbtConsumerWatcherSensor`` tasks are assigned to on retries. On retry, consumer sensors execute the dbt command for a failed node and may require significantly more resources than their initial sensor run. The computational cost can vary widely — for example, a Cosmos watcher sensor consumes approximately 200MB on its first attempt, compared to 700MB when running a dbt build for a project with almost 200 models. This behavior is enforced by Cosmos via an `Airflow cluster policy `_ (``task_instance_mutation_hook``) that mutates ``task_instance.queue`` at runtime for retry attempts. If unset, falls back to the deprecated :ref:`watcher_dbt_execution_queue` for backwards compatibility. - Default: ``None`` - Environment Variable: ``AIRFLOW__COSMOS__WATCHER_DBT_RETRY_QUEUE`` .. _watcher_dbt_execution_queue: `watcher_dbt_execution_queue`_: .. deprecated:: 1.16.0 Deprecated in favor of the dedicated :ref:`watcher_dbt_producer_queue` and :ref:`watcher_dbt_retry_queue` settings, and will be removed in Cosmos 2.0.0. Previously, this single setting was applied to both the ``DbtProducerWatcherOperator`` task and to ``DbtConsumerWatcherSensor`` retries. If set and either of the new settings is left unset, Cosmos continues to use this value for that task type, so existing configurations keep working without changes. It is not used as a fallback for :ref:`watcher_dbt_consumer_queue`, which has no pre-1.16.0 equivalent. - Default: ``None`` - Environment Variable: ``AIRFLOW__COSMOS__WATCHER_DBT_EXECUTION_QUEUE`` .. _enable_watcher_reliable_retry: `enable_watcher_reliable_retry`_: (Introduced in Cosmos 1.15.0) Controls *when* the watcher producer writes its in-memory backup of per-node dbt statuses to an Airflow Variable, so that consumer sensors do not lose them if the producer is retried. See :ref:`producer-status-backup` for a side-by-side comparison. When ``True`` (default), the backup is written eagerly after every dbt node. Statuses survive any producer failure, including a hard ``SIGKILL``/OOM kill, so consumers never re-run dbt on a retry. This is the most reliable option, but the per-node Variable writes are measurable producer CPU/IO on large projects. When ``False``, the backup is written once, when the producer is retried, via the producer's ``on_retry_callback`` (a graceful failure with retries left is ``UP_FOR_RETRY``, not ``FAILED``). This removes the per-node Variable I/O and improves producer performance. A graceful producer failure (for example a dbt model error) still flushes the backup, so consumers recover as in the reliable mode; only a hard kill (``SIGKILL``/OOM, where Airflow cannot run the callback) loses the in-memory statuses, in which case the affected consumer sensors re-run their dbt node locally. Results stay correct. On Airflow 3.3 and later (Cosmos 1.16.0+), ``True`` keeps the per-node backup in the Airflow task store instead of a Variable, which makes no secrets-backend calls; ``False`` behaves as described above. See :ref:`producer-status-backup-task-store`. - Default: ``True`` - Environment Variable: ``AIRFLOW__COSMOS__ENABLE_WATCHER_RELIABLE_RETRY`` [openlineage] ~~~~~~~~~~~~~ .. _namespace: `namespace`_: The OpenLineage namespace for tracking lineage. - Default: If not configured in Airflow configuration, it falls back to the environment variable ``OPENLINEAGE_NAMESPACE``, otherwise it uses ``DEFAULT_OPENLINEAGE_NAMESPACE``. - Environment Variable: ``AIRFLOW__OPENLINEAGE__NAMESPACE`` .. note:: For more information, see `OpenLineage Configuration Options `_. Environment Variables ~~~~~~~~~~~~~~~~~~~~~ .. _LINEAGE_NAMESPACE: `LINEAGE_NAMESPACE`_: The OpenLineage namespace for tracking lineage. - Default: If not configured in Airflow configuration, it falls back to the environment variable ``OPENLINEAGE_NAMESPACE``, otherwise it uses ``DEFAULT_OPENLINEAGE_NAMESPACE``.