Skip to content

Conversation

@pankajastro
Copy link
Member

@pankajastro pankajastro commented Feb 12, 2024

In #37279 I introduce periodic logging of the container.
During the process, I also changed a few event Dict key names
and that is problematic for someone extending the KPO trigger.
Also, the current execute_compelete method was unused in the KPO operator
and was problematic if someone using it in an extended class since
now the trigger can also emit an event even if the pod is in the pod intermediate state.
one reported issue: #37279 (comment)
In this PR I'm restoring the trigger event dict structure.
Also, deprecating the execute_complete method


^ Add meaningful description above
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.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues provider:google Google (including GCP) related issues labels Feb 12, 2024
@pankajastro pankajastro changed the title Restore KPO trigger event param name KPO: Maintain backward compatibility for execute_complete and trigger run method Feb 14, 2024
@pankajastro pankajastro changed the title KPO: Maintain backward compatibility for execute_complete and trigger run method KPO Maintain backward compatibility for execute_complete and trigger run method Feb 14, 2024
@pankajastro pankajastro marked this pull request as ready for review February 14, 2024 14:53
@vchiapaikeo
Copy link
Contributor

Hi @pankajastro , I tested the same snippet that I tested here: #37279 (comment)

And this time it worked! 🎉

Thank you for the quick fix!

@pankajkoti
Copy link
Member

Thank you so much @vchiapaikeo for quickly testing this out

@pankajkoti pankajkoti requested a review from Lee-W February 14, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants