Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Sep 17, 2025

Add async support for secrets backends in _async_get_connection using sync_to_async to prevent event loop blocking. This resolves the 'async_to_sync forbidden in event loop' error when triggers call get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during async trigger execution.

Related PRs;


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
@kaxil kaxil force-pushed the fix-async-connection-secrets-backend branch from 0366cd9 to 3823c5b Compare September 17, 2025 23:15
@kaxil kaxil requested a review from jedcunningham September 17, 2025 23:17
@kaxil kaxil added this to the Airflow 3.1.0 milestone Sep 23, 2025
@kaxil kaxil merged commit 2f76b41 into apache:main Sep 23, 2025
169 of 170 checks passed
@kaxil kaxil deleted the fix-async-connection-secrets-backend branch September 23, 2025 02:16
kaxil added a commit that referenced this pull request Sep 23, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.

(cherry picked from commit 2f76b41)
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Sep 30, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 1, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 2, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 3, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 4, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 7, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 8, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 9, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 10, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 11, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 12, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 14, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 15, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 17, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 19, 2025
Add async support for secrets backends in _async_get_connection using
sync_to_async to prevent event loop blocking. This resolves the
'async_to_sync forbidden in event loop' error when triggers call
get_connection() and secrets backends need to be checked.

Also fix Databricks provider to use async connection methods in async
contexts instead of cached properties that cause sync calls.

Fixes triggerer failures when providers access connections during
async trigger execution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants