Skip to content
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

Implement on_status parameter for KubernetesDeleteJobOperator #32

Closed
wants to merge 1 commit into from

Conversation

moiseenkov
Copy link
Collaborator

Introduced three new parameters for KubernetesDeleteJobOperator:

  • on_status = None | "Complete" | "Failed" - remove the job regardless of its status | remove only successful jobs | remove only failed jobs. The default is None.
  • wait_until_job_complete - Whether to wait for the job to complete. The default value is False.
  • job_poll_interval - Interval in seconds between polling the job status. Used when the on_status parameter is set. The default value is 10.0.

Default values for new parameters ensure that existing DAGs will work with no changes.

@moiseenkov moiseenkov force-pushed the gke-delete-job-on-status branch from 96afc82 to 38e7e18 Compare March 25, 2024 10:52
@VladaZakharova
Copy link
Owner

Can you please update PR so it will be only your commits? :)
It will be easier to review :D

@moiseenkov
Copy link
Collaborator Author

Yes, seems that rebase wasn't clean.

@moiseenkov moiseenkov closed this Mar 25, 2024
@moiseenkov moiseenkov reopened this Mar 25, 2024
@moiseenkov moiseenkov changed the base branch from gke-hooks-refactor to main March 25, 2024 11:39
@moiseenkov
Copy link
Collaborator Author

It's better now. Thanks for noticing

Copy link
Owner

@VladaZakharova VladaZakharova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@moiseenkov
Copy link
Collaborator Author

Thank you

@moiseenkov moiseenkov closed this Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants