You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/11/29 15:32:55 UTC
[GitHub] [airflow] subkanthi edited a comment on pull request #19356: Add influxdb operator
subkanthi edited a comment on pull request #19356:
URL: https://github.com/apache/airflow/pull/19356#issuecomment-981745534
> Also please fix the templated field issue mentioned above.
For some reason, I was getting this error, when I set the template_fields='sql', will try to troubleshoot.
```
[2021-11-29, 15:29:12 UTC] {standard_task_runner.py:91} ERROR - Failed to execute job 11 for task query_influxdb
Traceback (most recent call last):
File "/opt/airflow/airflow/task/task_runner/standard_task_runner.py", line 85, in _start_by_fork
args.func(args, dag=self.dag)
File "/opt/airflow/airflow/cli/cli_parser.py", line 48, in command
return func(*args, **kwargs)
File "/opt/airflow/airflow/utils/cli.py", line 92, in wrapper
return f(*args, **kwargs)
File "/opt/airflow/airflow/cli/commands/task_command.py", line 293, in task_run
_run_task_by_selected_method(args, dag, ti)
File "/opt/airflow/airflow/cli/commands/task_command.py", line 107, in _run_task_by_selected_method
_run_raw_task(args, ti)
File "/opt/airflow/airflow/cli/commands/task_command.py", line 184, in _run_raw_task
error_file=args.error_file,
File "/opt/airflow/airflow/utils/session.py", line 70, in wrapper
return func(*args, session=session, **kwargs)
File "/opt/airflow/airflow/models/taskinstance.py", line 1330, in _run_raw_task
self._execute_task_with_callbacks(context)
File "/opt/airflow/airflow/models/taskinstance.py", line 1419, in _execute_task_with_callbacks
self.render_templates(context=context)
File "/opt/airflow/airflow/models/taskinstance.py", line 2111, in render_templates
self.task.render_template_fields(context)
File "/opt/airflow/airflow/models/baseoperator.py", line 1051, in render_template_fields
self._do_render_template_fields(self, self.template_fields, context, jinja_env, set())
File "/opt/airflow/airflow/models/baseoperator.py", line 1062, in _do_render_template_fields
content = getattr(parent, attr_name)
AttributeError: 'InfluxDBOperator' object has no attribute 's'
```
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org