Skip to content

Conversation

@dheerajturaga
Copy link
Member

Edge Worker (EdgeExecutor) runs in the foreground today. This PR extends the ability of the edge worker to run in daemon mode. You will also be able to redirect stdout and stderr into their respective log files when running in daemon as well. Added options --daemon, --log, --stdout, --stderr

@dheerajturaga dheerajturaga requested a review from jscheffl as a code owner May 10, 2025 08:54
@boring-cyborg boring-cyborg bot added area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3 labels May 10, 2025
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good ans thanks for the addition!

Can you also please adjust the docs so that people know about this, probably for example in providers/edge3/docs/deployment.rst ?

@dheerajturaga
Copy link
Member Author

@jscheffl , I updated the docs highlighting this feature. I also added worker umask to the args list (aligning with celery)

dheerajturaga and others added 3 commits May 11, 2025 07:11
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution - and the patience is rework! I think this is a very good extension! LGTM!

@jscheffl jscheffl merged commit 9e3a934 into apache:main May 11, 2025
64 checks passed
@dheerajturaga dheerajturaga deleted the daemon-edge-worker branch May 11, 2025 17:47
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
* Support Edge Worker in Daemon Mode

* Default daemon to false in EdgeWorkerCli

* Update docs and add umask to worker command

* cleaner umask selection

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>

* Add worker_umask to provider.yaml

* Better help message for log files

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>

---------

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants