airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Junda Yang <young...@gmail.com>
Subject Calling sudo to remove temp cfg file failed
Date Wed, 13 Mar 2019 23:54:48 GMT
Hi all,

Is there any reason Airflow needs to call *sudo* to remove the temp cfg
file based on
https://github.com/apache/airflow/blob/5a303ebbc572cee7c9c30be84ebf625357360d4b/airflow/task_runner/base_task_runner.py#L155-#L160
?
We use a non-root user to run Airflow worker and I think the command called
in the on_finish function failed.

If there is indeed a reason to use *sudo*, is there any recommendation /
configuration I can utilize to run Airflow worker as a non-root user?

Thanks,
Junda

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message