Commit f29b949
fix(aws): Improve AWS Batch label sanitization with comprehensive logging
Address PR feedback by enhancing the label sanitization logic with better
user experience and code maintainability:
- Add warning logs when labels are dropped due to null values
- Add warning logs when labels are dropped after failed sanitization
- Add warning logs when labels are modified during sanitization
- Simplify sanitizeAwsBatchLabel method using method chaining and ternary operator
- Follow codebase patterns for length truncation (similar to AbstractGridExecutor)
- Improve code readability while maintaining all existing functionality
Resolves silent label dropping issue and provides clear feedback to users
when resource labels are modified or removed during AWS Batch job submission.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Edmund Miller <[email protected]>1 parent 20cfbf5 commit f29b949
File tree
1 file changed
+32
-23
lines changed- plugins/nf-amazon/src/main/nextflow/cloud/aws/batch
1 file changed
+32
-23
lines changedLines changed: 32 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
894 | 890 | | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
895 | 909 | | |
896 | 910 | | |
897 | 911 | | |
| |||
908 | 922 | | |
909 | 923 | | |
910 | 924 | | |
911 | | - | |
| 925 | + | |
912 | 926 | | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
917 | 931 | | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
927 | 936 | | |
928 | | - | |
| 937 | + | |
929 | 938 | | |
930 | 939 | | |
931 | 940 | | |
| |||
0 commit comments