shahar1 commented on PR #61048: URL: https://github.com/apache/airflow/pull/61048#issuecomment-3827887805
> Sounds good! Let me know once you've finished the survey :) OK, found it - we have [unwrap_single](https://github.com/apache/airflow/blob/c7a8e43ad919e19e263cb52bd1d2576cd64c2aab/providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/operators/job.py#L102) for `KubernetesJobOperator`, which is even better than `as_list` as the latter is meaningless for multiple results. Let's do it as follows: 1. Rename the parameter to `unwrap_single` - default for now should be `True` to retain backward compatibility. 2. If the parameter is not provided at all, raise the deprecation warning that this parameter will be set to default `False` in future release. If it's explicitly provided (either `True` or `False`), it means that the user is acknowledged of this parameter and fixated its value, so no need to warn them. I'll update the instructions in the original issue. -- 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]
