Conversation
|
Might need a second pair of eyes, but LGTM |
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
|
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 ? |
The code is too small IMO -- duplication is not always bad :) We can leave this as-is and close this PR |
I see! I’ll remove this small new module as I was previously a bit stuck trying to avoid duplication. |
d918926 to
2a025af
Compare
2a025af to
7c758fa
Compare
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
56af22a
Compare
|
Hi @kaxil, this PR still needs your approval to resolve the requested changes. Thanks! |
56af22a to
b4786a2
Compare
|
It seems that this PR still needs @kaxil's approval before it can be merged. |
|
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.
|
@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.