added rejection of downloads greater than max size

This commit is contained in:
dcore94 2021-10-15 18:19:31 +02:00
parent ef9de00325
commit c173f3441c
1 changed files with 1 additions and 1 deletions

View File

@ -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}"
}
},
{