kaxil commented on code in PR #56602:
URL: https://github.com/apache/airflow/pull/56602#discussion_r2430338584
##########
task-sdk/src/airflow/sdk/execution_time/context.py:
##########
@@ -307,18 +277,21 @@ def _set_variable(key: str, value: Any, description: str
| None = None, serializ
from airflow.sdk.execution_time.cache import SecretCache
from airflow.sdk.execution_time.comms import PutVariable
+ from airflow.sdk.execution_time.secrets.execution_api import
ExecutionAPISecretsBackend
from airflow.sdk.execution_time.supervisor import
ensure_secrets_backend_loaded
from airflow.sdk.execution_time.task_runner import SUPERVISOR_COMMS
# check for write conflicts on the worker
for secrets_backend in ensure_secrets_backend_loaded():
+ if isinstance(secrets_backend, ExecutionAPISecretsBackend):
+ continue
Review Comment:
It is checking for write conflicts in other backends before setting variable
via API-server
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]