airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deng Xiaodong <>
Subject Re: Calling sudo to remove temp cfg file failed
Date Thu, 14 Mar 2019 00:09:54 GMT
Tried to have a quick check. Seems sudo will only be required when you use
the “run_as_user” option in your task.

May you confirm if it’s the case? If yes, possibly try not to use
“run_as_user” if you don’t have root permission.


On Thu, Mar 14, 2019 at 07:55 Junda Yang <> wrote:

> Hi all,
> Is there any reason Airflow needs to call *sudo* to remove the temp cfg
> file based on
> ?
> 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

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