added rejection of downloads greater than max size
This commit is contained in:
parent
ef9de00325
commit
c173f3441c
|
@ -231,7 +231,7 @@
|
|||
"type": "LAMBDA",
|
||||
"inputParameters": {
|
||||
"rejected" : "${build_transfer_tasks.output.result.rejected}",
|
||||
"scriptExpression": "if($.rejected.length === 0) return {report: ''}; var k,report='<table style=\"border: solid 1px gray\"><thead style=\"background-color:rgba(0,0,0,.1)\"><tr><th>Download</th><th style=\"width:100%;text-align:left;\">Rejected</th></tr></thead><tbody>';for(var r=0; r< $.rejected.length;r++){report+='<tr><td>'+$.rejected[r].number+'</td><td>'+$.rejected[r].size+' exceeds max (16GB)</td></tr>'}report+='</tbody></table>';return { report : report}"
|
||||
"scriptExpression": "if($.rejected.length === 0) return {report: ''}; var k,report='<p>REJECTED:</p><table style=\"border: solid 1px gray\"><thead style=\"background-color:rgba(0,0,0,.1)\"><tr><th>Download</th><th style=\"width:100%;text-align:left;\">Rejection reason</th></tr></thead><tbody>';for(var r=0; r< $.rejected.length;r++){report+='<tr><td>'+$.rejected[r].number+'</td><td>'+$.rejected[r].size+' bytes exceeds maximum allowed of 15Gb.</td></tr>'}report+='</tbody></table>';return { report : report}"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue