This is an automated email from the ASF dual-hosted git repository.
amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 00194da372d Remove warning for `BaseOperator.executor` because its
false (#53496)
00194da372d is described below
commit 00194da372d1726794e806fb9954ee0d97939b83
Author: Amogh Desai <[email protected]>
AuthorDate: Sat Jul 19 10:56:14 2025 +0530
Remove warning for `BaseOperator.executor` because its false (#53496)
---
task-sdk/src/airflow/sdk/bases/operator.py | 7 -------
1 file changed, 7 deletions(-)
diff --git a/task-sdk/src/airflow/sdk/bases/operator.py
b/task-sdk/src/airflow/sdk/bases/operator.py
index 3a5388f9d1a..c430f389823 100644
--- a/task-sdk/src/airflow/sdk/bases/operator.py
+++ b/task-sdk/src/airflow/sdk/bases/operator.py
@@ -1077,13 +1077,6 @@ class BaseOperator(AbstractOperator,
metaclass=BaseOperatorMeta):
self.start_date = timezone.convert_to_utc(start_date)
self.end_date = timezone.convert_to_utc(end_date)
-
- if executor:
- warnings.warn(
- "Specifying executors for operators is not yet supported, the
value {executor!r} will have no effect",
- category=UserWarning,
- stacklevel=2,
- )
self.executor = executor
self.executor_config = executor_config or {}
self.run_as_user = run_as_user