I am trying to switch over from LocalExecutor to CeleryExecutor on my local machine. I should have the necessary libraries installed using pip install airflow[celery]. I also have redis installed and running.
However, when I try to run airflow worker, I get the error:
DEFAULT_EXECUTOR = CeleryExecutor()
NameError: CeleryExecutor' is not defined
I have a broker url and celery_result_backend both set to redis://localhost:6379 with redis running in the background. What am I doing wrong?