Uh oh!
There was an error while loading. Please reload this page.
Fix setproctitle usage - #53122
Conversation
pierrejeambrun
commented
Jul 10, 2025
Might need a second pair of eyes, but LGTM |
Uh oh!
There was an error while loading. Please reload this page.
kaxil
left a comment
There was a problem hiding this comment.
Yeah, like @amoghrajesh mentioned that this is duplicated purposely to not have dependency for it between Core, SDK & Providers
jason810496
commented
Jul 10, 2025
So I need to wait until the PR for code sharing of "core", "task-sdk" and "provider" described in Dev Mail: Code sharing between Airflow Core and Task SDK - how do we achieve it then keep on this right ? |
kaxil
commented
Jul 10, 2025
The code is too small IMO -- duplication is not always bad :) We can leave this as-is and close this PR |
jason810496
commented
Jul 11, 2025
I see! I’ll remove this small new module as I was previously a bit stuck trying to avoid duplication. |
d918926 to
2a025afCompareUh oh!
There was an error while loading. Please reload this page.
2a025af to
7c758faComparejason810496
commented
Jul 22, 2025
No, thanks for the reminder, I just want to make sure the CI is green before marking the PR as ready to review. |
7c758fa to
56af22aComparejason810496
commented
Jul 26, 2025
Hi @kaxil, this PR still needs your approval to resolve the requested changes. Thanks! |
56af22a to
b4786a2Comparejason810496
commented
Aug 1, 2025
It seems that this PR still needs @kaxil's approval before it can be merged. |
ashb
commented
Aug 1, 2025
Other committers can dismiss reviews. I've just done that, and let me give it a re-review. |
pierrejeambrun
left a comment
There was a problem hiding this comment.
That looks good to me. I'll let @ashb give the final word on this as requested
potiuk
left a comment
There was a problem hiding this comment.
That calls a little for a "shared" distribution to include that code rather than copy it over. But it'a little to small to do it now. But maybe eventually when we expand on our "shared" projects concept we could have a separate "executors base" code an we split out executors to separately installable distributions, we could make the code implemented once. Maybe worth leaving TODO for that ?
Just a suggestion - not a blocker at all.
ashb
commented
Aug 14, 2025
@potiuk I see it differently, and I'd say this is one of the cases where not using a shared dist and duplicating the code is better for readability -- this sort of case is exactly what I had in mind when I wrote this https://github.com/apache/airflow/tree/main/shared#be-thoughtful-about-what-you-add-under-here
|
related: #52860
Why
When using
setproctitlewe should skip MacOS (darwin) as special case, see benoitc/gunicorn#3021 for more detail.When refactoring in #52860, I found there are duplicate code to handle
setproctitlefor MacOS and some usage ofsetproctitledon't handle the MacOS problem, which might lead to error.What
setproctitleutility in theairflow.utilsmodule to centralize handling of the macOS error, allowing us to avoid the issue from the beginning.