Skip to content

Commit

Permalink
Better instructions for airflow flower (apache#4214)
Browse files Browse the repository at this point in the history
* Better instructions for airflow flower

It is not clear in the documentation that you need to have flower installed to successful run airflow flower. If you don't have flower installed, running airflow flower will show the following error which is not of much help:

airflow flower
[2018-11-20 17:01:14,836] {__init__.py:51} INFO - Using executor SequentialExecutor
Traceback (most recent call last):
  File "/mnt/secondary/workspace/f4/typo-backend/pipelines/model-pipeline/airflow/bin/airflow", line 32, in <module>
    args.func(args)
  File "/mnt/secondary/workspace/f4/typo-backend/pipelines/model-pipeline/airflow/lib/python3.6/site-packages/airflow/utils/cli.py", line
 74, in wrapper
    return f(*args, **kwargs)
  File "/mnt/secondary/workspace/f4/typo-backend/pipelines/model-pipeline/airflow/lib/python3.6/site-packages/airflow/bin/cli.py", line 1
221, in flower
    broka, address, port, api, flower_conf, url_prefix])
  File "/mnt/secondary/workspace/f4/typo-backend/pipelines/model-pipeline/airflow/lib/python3.6/os.py", line 559, in execvp
    _execvpe(file, args)
  File "/mnt/secondary/workspace/f4/typo-backend/pipelines/model-pipeline/airflow/lib/python3.6/os.py", line 604, in _execvpe
    raise last_exc.with_traceback(tb)
  File "/mnt/secondary/workspace/f4/typo-backend/pipelines/model-pipeline/airflow/lib/python3.6/os.py", line 594, in _execvpe
    exec_func(fullname, *argrest)                                                                                                        FileNotFoundError: [Errno 2] No such file or directory

* Update use-celery.rst
  • Loading branch information
GabrielNicolasAvellaneda authored and Chris Fei committed Jan 23, 2019
1 parent d6ea3e6 commit 2541933
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/howto/executor/use-celery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ Note that you can also run "Celery Flower", a web UI built on top of Celery,
to monitor your workers. You can use the shortcut command ``airflow flower``
to start a Flower web server.

Please note that you must have the ``flower`` python library already installed on your system. The recommend way is to install the airflow celery bundle.

.. code-block:: bash
pip install 'apache-airflow[celery]'
Some caveats:

- Make sure to use a database backed result backend
Expand Down

0 comments on commit 2541933

Please sign in to comment.