@@ -2534,23 +2534,27 @@ def action_pool_ssh(batch_client, config, cardinal, nodeid, tty, command):
25342534
25352535
25362536def action_pool_delnode (
2537- batch_client , config , all_start_task_failed , all_unusable , nodeid ):
2538- # type: (batchsc.BatchServiceClient, dict, bool, bool, str) -> None
2537+ batch_client , config , all_start_task_failed , all_starting ,
2538+ all_unusable , nodeid ):
2539+ # type: (batchsc.BatchServiceClient, dict, bool, bool, bool, str) -> None
25392540 """Action: Pool Delnode
25402541 :param azure.batch.batch_service_client.BatchServiceClient batch_client:
25412542 batch client
25422543 :param dict config: configuration dict
25432544 :param bool all_start_task_failed: delete all start task failed nodes
2545+ :param bool all_starting: delete all starting nodes
25442546 :param bool all_unusable: delete all unusable nodes
25452547 :param str nodeid: nodeid to delete
25462548 """
25472549 _check_batch_client (batch_client )
2548- if (all_start_task_failed or all_unusable ) and nodeid is not None :
2550+ if ((all_start_task_failed or all_starting or all_unusable ) and
2551+ nodeid is not None ):
25492552 raise ValueError (
25502553 'cannot specify all start task failed nodes or unusable with '
25512554 'a specific node id' )
25522555 batch .del_node (
2553- batch_client , config , all_start_task_failed , all_unusable , nodeid )
2556+ batch_client , config , all_start_task_failed , all_starting ,
2557+ all_unusable , nodeid )
25542558
25552559
25562560def action_pool_rebootnode (
0 commit comments