Not really sure this is your problem,
however, you are awaiting await dwnldKeybankListTask
twice, and not awaiting dwnldAOCListTask
at all and passing the task straight to dwnldKeybankList
Try this
void async void FunctiontHandler(S3Event s3Event, ILambdaContext context)
{
var bankPrefix = $"{prefix}KEYBANK_{Function.outputZipFileSuffix}/ST";
var bankList = await toEFS.ListDownloadObjectsAsync(bucket, bankPrefix , s3client);
var aocPrefix = $"{prefix}AOC_{Function.outputZipFileSuffix}/{AOCFilePrefix}";
var aocList = await toEFS.ListDownloadObjectsAsync(bucket, aocPrefix, s3client);
bankList.AddRange(aocList);
}
Also you are using async void
, 9 times out of 10 you will actually want async Task
. Additionally your variables names are fairly confusing
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…