使用气流v1.9.0。尝试为花费太长时间的任务将任务状态设置为failed
(如果可能,该任务本身正在运行sqoop
命令以从另一个DB获取数据)。尝试通过Web服务器UI将任务状态设置为failed
时,我得到了蘑菇状云错误页面和下面的错误跟踪。
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python2.7/site-packages/flask_admin/base.py", line 69, in inner
return self._run_view(f, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/flask_admin/base.py", line 368, in _run_view
return fn(self, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/flask_admin/model/base.py", line 2068, in action_view
return self.handle_action()
File "/usr/lib/python2.7/site-packages/flask_admin/actions.py", line 113, in handle_action
response = handler[0](ids)
File "/usr/lib/python2.7/site-packages/airflow/www/views.py", line 2498, in action_set_failed
self.set_task_instance_state(ids, State.FAILED)
File "/usr/lib/python2.7/site-packages/airflow/utils/db.py", line 50, in wrapper
result = func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/airflow/www/views.py", line 2540, in set_task_instance_state
raise Exception("Ooops")
Exception: Ooops
对于正在运行或排队等待运行的任务均会发生。
不知道该怎么做。有更多气流经验的人有更多的调试技巧或知道如何解决?应该添加到此问题中进行调试的其他信息吗?