hussein-awala opened a new pull request, #29821:
URL: https://github.com/apache/airflow/pull/29821
closes: #29819
---
There are some fields processed by the scheduler and they are not
templateable, but currently we don't have any check for these fields. In this
PR a create an instance from `BaseOperator` and I check if there is a field in
the `template_fields` to raise an exception, where all the `BaseOperator` task
instance are processed and used by the scheduler during processing time.
```python
>>> from airflow.models import BaseOperator
>>> set(BaseOperator(task_id="base_task").__dict__.keys())
{'_pre_execute_hook', 'doc', 'executor_config', 'email',
'retry_exponential_backoff', 'depends_on_past', 'inlets',
'wait_for_downstream', 'email_on_failure', 'doc_json', 'execution_timeout',
'upstream_task_ids', 'task_id', 'sla', 'on_success_callback', 'trigger_rule',
'ignore_first_depends_on_past', 'doc_md', 'pool', '_BaseOperator__from_mapped',
'_post_execute_hook', 'on_failure_callback', 'doc_rst', 'downstream_task_ids',
'email_on_retry', 'weight_rule', 'pool_slots', 'priority_weight',
'run_as_user', 'doc_yaml', 'on_retry_callback', 'do_xcom_push',
'max_retry_delay', '_BaseOperator__instantiated', 'retries', 'owner',
'_BaseOperator__init_kwargs', 'params', 'queue', 'resources',
'max_active_tis_per_dag', '_log', 'wait_for_past_depends_before_skipping',
'retry_delay', 'on_execute_callback', 'outlets'}
```
--
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]