-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Support For Edge Worker in Daemon Mode #50425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jscheffl
left a comment
There was a problem hiding this 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 ?
providers/edge3/src/airflow/providers/edge3/cli/edge_command.py
Outdated
Show resolved
Hide resolved
|
@jscheffl , I updated the docs highlighting this feature. I also added worker umask to the args list (aligning with celery) |
providers/edge3/src/airflow/providers/edge3/cli/edge_command.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
jscheffl
left a comment
There was a problem hiding this 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!
* 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>
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