-
Notifications
You must be signed in to change notification settings - Fork 16.4k
fix spark-kubernetes-operator compatibility #31798
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
46cadac to
1d1325f
Compare
|
@hanna-liashchuk @Owen-CH-Leung @matheus-rossi @adminidever |
|
Hi, thanks for the PR. This fails the task, but the spark application is still running and succeeding. Maybe some of these types of errors should be catched instead of letting the pod fail. What do you think? |
|
@jherrmannNetfonds Good catch buddy. |
@potiuk airflow/airflow/models/taskinstance.py Lines 1709 to 1718 in a60429e
|
We run on_kill in task receiving signal: (the other on_kill was different) |
|
|
@potiuk Why closing PR? |
|
Please consider reopening the PR, since 2.6.x came with braking changes for the |
|
Sorry, Sorry, it was PURELY accidental :). I usually write briefly why I am closing stuff (sometimes maybe in a harsh way but I usually tell why ;) |
|
thx for reopening. Probably cleaner to kill everything (task + sparkapp) on an error, but on the other side, sparkapps are mostly long running jobs processing big amounts of data. So the question is, what is more intuitive / less confusing / less annoying for the user. |
1d1325f to
af7aa7c
Compare
pyproject.toml
Outdated
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.
Why changing that ?
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.
Oh sorry, that was a clumsy action 😁
af7aa7c to
2c09c0a
Compare
potiuk
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.
I do not know much about the Spark/K8S interface, but the change looks legit.
@jedcunningham - would you want to take a look as well?
|
hey @blcksrx I just got an issue when my SparkApp completed but never reached Have you encountered the same ? |
|
Hi @sudohainguyen Unfortunately not. |
This PR would fix the problems mentioned in the issue.
watch: bool = Falsethis operator executes as same as the old version and the compatibility issue would solvescloses: #31183
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.