Hi, one of my custom operators fails with exception, I can't understand why, can you help me please?
[2016-02-09 16:48:13,173] {models.py:1041} ERROR - 'bool' object is not callable
Traceback (most recent call last):
File "/app/.heroku/python/lib/python2.7/site-packages/airflow/models.py", line 1000, in run
result = task_copy.execute(context=context)
File "/app/extensions/untar_operator.py", line 49, in execute
self.xcom_push(context, self.artifact_tar_gz_name, unpack_path)
TypeError: 'bool' object is not callable
[2016-02-09 16:48:13,196] {models.py:1077} ERROR - 'bool' object is not callable
I try to extend existing BashOperator.
# If a timout is specified for the task, make it fail
# if it goes beyond
result = None
if task_copy.execution_timeout:
with utils.timeout(int(
task_copy.execution_timeout.total_seconds())):
result = task_copy.execute(context=context)
else:
result = task_copy.execute(context=context) # Exception here...