<@U04S8PLJWMT> Disable DISCOVER REFRESH
# ask-ai
k
@kapa.ai Disable DISCOVER REFRESH
k
To disable automatic schema refresh (DISCOVER REFRESH) in Airbyte, set the environment variable
DISCOVER_REFRESH_WINDOW_MINUTES
to
0
. This can be done in your
values.yaml
file if you are using Helm:
Copy code
yaml worker:   env_vars:     DISCOVER_REFRESH_WINDOW_MINUTES: 0 # Airbyte does not automatically detect schema changes.
With this setting, Airbyte will not automatically refresh schemas; all schema refreshes must be performed manually via the Airbyte UI or API. This approach is supported in both self-managed and cloud instances, though the default values differ between them. Setting the value to
0
fully disables the automatic refresh feature [Release notes v1.4](https://docs.airbyte.com/release_notes/v-1.4) [Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker).
k
@kapa.ai How to disable run discover shema while jobs run?
k
A message from kapa.ai
To disable automatic schema discovery during job runs in Airbyte, you can set the
DISCOVER_REFRESH_WINDOW_MINUTES
environment variable to
0
. This prevents Airbyte from automatically running schema discovery at the start of syncs. Here's how to configure it in your
values.yaml
file:
Copy code
yaml worker:   env_vars:     DISCOVER_REFRESH_WINDOW_MINUTES: 0 # Airbyte does not automatically detect schema changes.
With this configuration, Airbyte will not automatically refresh schemas before syncs. All schema refreshes will need to be done manually via the Airbyte UI or API [Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker). According to the [release notes](https://docs.airbyte.com/release_notes/v-1.4), at the start of a sync, Airbyte occasionally re-runs schema discovery to detect changes in your source. By setting
DISCOVER_REFRESH_WINDOW_MINUTES
to
0
, you completely disable this automatic behavior, which can improve sync performance by eliminating the overhead of schema discovery during job execution.
g
@kapa.ai Airbyte does not seem to respect DISCOVER_REFRESH_WINDOW_MINUTES for Snowflake source and is still running a discover when a Sync is trigerred. Is there any way to disable this ?
k
A message from kapa.ai
Based on the available knowledge sources, setting
DISCOVER_REFRESH_WINDOW_MINUTES
to
0
is the documented way to disable automatic schema discovery for all sources, including Snowflake. This setting should prevent Airbyte from running schema discovery automatically before sync jobs, requiring manual schema refreshes via the UI or API instead [Release notes v1.4](https://docs.airbyte.com/release_notes/v-1.4) [Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker). However, the knowledge sources do not mention any exceptions or special behavior for the Snowflake source. There is no explicit information about Airbyte ignoring this setting for Snowflake or a workaround if it does. If you are experiencing that Airbyte still runs discovery for Snowflake even with this setting, the documentation does not provide further guidance or a solution for this scenario. I'm sorry, but there's no information in the provided knowledge sources about disabling schema discovery specifically for the Snowflake source if
DISCOVER_REFRESH_WINDOW_MINUTES
is not respected. You may want to reach out to Airbyte support or check for any open issues related to this behavior.