potiuk commented on a change in pull request #20438:
URL: https://github.com/apache/airflow/pull/20438#discussion_r776283333
##########
File path: airflow/cli/commands/kubernetes_command.py
##########
@@ -69,13 +70,22 @@ def generate_pod_yaml(args):
@cli_utils.action_cli
def cleanup_pods(args):
- """Clean up k8s pods in evicted/failed/succeeded states"""
+ """Clean up k8s pods in evicted/failed/succeeded/pending states"""
namespace = args.namespace
+ min_pending_minutes = args.min_pending_minutes
+ # protect newly created pods from deletion
+ if min_pending_minutes < 5:
+ min_pending_minutes = 5
Review comment:
I think that's fine but we should descibe it in the help.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]