ordonezf commented on issue #18066:
URL: https://github.com/apache/airflow/issues/18066#issuecomment-914500677
It seems to work 🎉
```bash
k logs -f airflow-worker-57c7dcc9f9-fhqgz
* Serving Flask app "airflow.utils.serve_logs" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production
deployment.
Use a production WSGI server instead.
* Debug mode: off
[2021-09-07 17:30:20,363] {_internal.py:113} INFO - * Running on
http://0.0.0.0:8793/ (Press CTRL+C to quit)
/home/airflow/.local/lib/python3.7/site-packages/celery/platforms.py:801
RuntimeWarning: You're running the worker with superuser privileges: this is
absolutely not recommended!
Please specify a different user using the --uid option.
User information: uid=50000 euid=50000 gid=0 egid=0
[2021-09-07 17:31:39,613: WARNING/ForkPoolWorker-1] Running <TaskInstance:
test-long-running.long-long 2021-09-07T17:31:36.089069+00:00 [queued]> on host
airflow-worker-57c7dcc9f9-fhqgz
worker: Warm shutdown (MainProcess)
-------------- celery@airflow-worker-57c7dcc9f9-fhqgz v4.4.7 (cliffs)
--- ***** -----
-- ******* ---- Linux-5.4.129-63.229.amzn2.x86_64-x86_64-with-debian-10.10
2021-09-07 17:30:21
- *** --- * ---
- ** ---------- [config]
- ** ---------- .> app:
airflow.executors.celery_executor:0x7f4546c68d90
- ** ---------- .> transport: redis://:**@airflow-redis:6379/0
- ** ---------- .> results:
postgresql+psycopg2://airflow:**@stg-datascience-database.trocafone.net:5432/airflow
- *** --- * --- .> concurrency: 2 (prefork)
-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this
worker)
--- ***** -----
-------------- [queues]
.> default exchange=default(direct) key=default
```
These are the values I used
```
# Environment variables for all airflow containers
env:
- name: DUMB_INIT_SETSID
value: 0
workers:
replicas: 1
command: ~
args:
- "bash"
- "-c"
- |-
exec \
airflow celery worker
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]