From 10ca12bdc98c3150155b7941f7db95b0abaf5ffb Mon Sep 17 00:00:00 2001 From: edsu7 <22638361+edsu7@users.noreply.github.com> Date: Fri, 26 May 2023 11:15:20 -0400 Subject: [PATCH] add force flag --- .DS_Store | Bin 10244 -> 10244 bytes process/score_upload.nf | 5 +++-- song-score-upload/.DS_Store | Bin 0 -> 6148 bytes song-score-upload/main.nf | 4 +++- song-score-upload/tests/checker.nf | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 song-score-upload/.DS_Store diff --git a/.DS_Store b/.DS_Store index 7df21db5b14c164f6d37f3a1c3ebc4963285a75c..44c83ff0ce7a068aa9b237cba8d0ee21d2ca3eda 100644 GIT binary patch delta 1331 zcmdT?OHUI~6rQhCnHjCziqzU`$S4UQ6a@?TRvrQ(7^)OOe5GYZ9Vt`j32$sM>&PgblV?D+~QPpI24Hab~91Z}#Rm6BFDk?hW^W`^Zgk zpSfx73-^ut11DU_0)ZPo6rd1AC`LJ|P>mWiA&A{*MFp zeWhgr6PaYBVQ~e6uz|Q?qrl`Q&ZK8K^PDJd-6mKbBwV^x?RM5`l3e#T?k9{P3Hd3O zicx|}tiyV2#Aei?9t~(@e1*`4z34zEV@qay9fgWGbQp}Y1Ww^J&f*+n>?*Fo#0}iW g9md`L@iA{j=6I&`%h^4L{xIQP`#(6NZ_b_Z7d_5Z%K!iX delta 1304 zcmeHGOH9;I6n$p^=e3GFKw%0LhoA^Df-?LjAQ6ZnC_-?Mj~`NKl?Ld*w17y+_(69P z%xKg^4aT_iOLRkG;*O|sVT_5I=)#>*H=3BZ@^uPvr5m?)(VKHl?|tu`^E%x+-8$O> zcE5EY32c59%XDEOnx8V#lsP$BQc|+T=iTi02c~@9$*um1a-X-XG%z(K(6zb6Rc$>3 zgF{B>9Em-EQ%T}dT`n`x^#4 zW?1?WT?-3Ba$I)MP=>TuY3Uv&Wk^}eUCy_^dnwDMouj?_$f#~jyh>c1#6-!PBT)A6 zpsH9}b4ax(sxd{1NZt*U9ZQc!v@+_2Zf|Lo6y51ZD;YbYrPk^p{eB zsqKSGuQuq66DtFp+TAgxg-tzVERox4sE`a_XJ2S&h#$ywXsNEA(g<5TY%jh?F|C$i z&EV_D&gYdHDDAS9T2SCZH^y{JvG|_$@iJ;sN^`ewA|zVo@kMTvN8~YCBrnJt@|L_K@5x8wq6#vU}I1wkCbVe~-35ri;|5tx|3DV)YM&SD0aa2Z!{6}NB) zcX1C7@B~ls4A1czAMgpEQ}6{}@xvv!MAu5!8rMcwezZ7k7;h@O9j_Dj za`?<`J4prhBy^)jQBEk=txjR#i4!+ps^J__K&X6{WT0;obYcAx>f z(8QezVm~_2g>Ljg<39C6M;I1HF@^|Ea<`^&hI=)O^SFSExQ;p8z|HxWo-+6O6GiiG b@6Y(^e~Fv#)c-$ckMzf!y?@Ku{#kwjpGiWX diff --git a/process/score_upload.nf b/process/score_upload.nf index 8d2c4cc..61ef9be 100644 --- a/process/score_upload.nf +++ b/process/score_upload.nf @@ -15,7 +15,7 @@ params.transport_mem = 2 // Transport memory is in number of GBs // optional if secret mounted from pod else required params.api_token = "" // song/score API token for download process - +params.score_force = false // required params, no default // --song_url song url for download process // --score_url score url for download process @@ -52,6 +52,7 @@ process scoreUpload { script: accessToken = params.api_token ? params.api_token : "`cat /tmp/rdpc_secret/secret`" + forceFlag = params.score_force ? "--force" : "" """ export METADATA_URL=${params.song_url} export STORAGE_URL=${params.score_url} @@ -59,6 +60,6 @@ process scoreUpload { export TRANSPORT_MEMORY=${params.transport_mem} export ACCESSTOKEN=${accessToken} - score-client upload --manifest ${manifest} + score-client upload --manifest ${manifest} ${forceFlag} """ } diff --git a/song-score-upload/.DS_Store b/song-score-upload/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..8211dfa223073c1cbeb3bf064e5a255118eb971e GIT binary patch literal 6148 zcmeHK%TB^T6g?L)V${gejY+?N#6PG67q0mLg#wK_QUW3_yZ2-KK396~%mkqbOEu=+ zfo z2^^nUh92?j`8fkjON%ck!CSKH73>ms`{2h4$g<$%;X-Ahlc3G2{rJ^%m! literal 0 HcmV?d00001 diff --git a/song-score-upload/main.nf b/song-score-upload/main.nf index fc60560..87e6b55 100755 --- a/song-score-upload/main.nf +++ b/song-score-upload/main.nf @@ -51,6 +51,7 @@ params.score_url = "https://score.rdpc-qa.cancercollaboratory.org" params.score_api_token = "" params.score_container = "ghcr.io/overture-stack/score" params.score_container_version = "latest" +params.score_force = false song_params = [ *:params, @@ -71,7 +72,8 @@ score_params = [ 'score_url': params.score_url, 'score_container': params.score_container, 'score_container_version': params.score_container_version, - 'api_token': params.score_api_token ?: params.api_token + 'api_token': params.score_api_token ?: params.api_token, + 'score_force': params.score_force ] include { songSubmit as songSub } from './local_modules/song-submit' params(song_params) diff --git a/song-score-upload/tests/checker.nf b/song-score-upload/tests/checker.nf index fde67f9..7cf0ce1 100755 --- a/song-score-upload/tests/checker.nf +++ b/song-score-upload/tests/checker.nf @@ -53,6 +53,7 @@ params.score_url = "https://score.rdpc-qa.cancercollaboratory.org" params.score_api_token = "" params.score_container = "ghcr.io/overture-stack/score" params.score_container_version = "latest" +params.score_force = false song_params = [ *:params,