Jobs completing at the same time are getting "stuck" in active status
Expected behaviour
All jobs that successfully complete NCBI processing and are passed to BCMS are reflected accurately by supported Statuses
Current behaviour
When batches of files are sent to NCBI for processing and are returned to BCMS at the same time, some get "stuck" in an active status.
Steps to reproduce
Discovered when recording / testing #1573 -
Note on this book used for testing two components are still in "Converting" status: https://ncbi.cloud68.co/organizations/6994b28c-6062-4337-a90d-6458ccf678ab/bookmanager/e74b81ee-f801-4c4a-959c-883249735d52
Note these completed on NCBI side and were passed to BCMS at same time (in terms of notifications):
See my email notifications:
See NCBI success details in TM that are "stuck" in BCMS: and
Environment
Possible solution
Logs
User launched a task while another one is still running. Forgot to use 'await' or '.then()'?",
Sep 03 11:37:34 ncbi-coko 51c916270054[1172]: stack: "Error: User launched a task while another one is still running. Forgot to use 'await' or '.then()'?\n" +
Sep 03 11:37:34 ncbi-coko 51c916270054[1172]: ' at FTPContext.handle (/home/node/app/node_modules/basic-ftp/dist/FtpContext.js:200:25)\n' +
Sep 03 11:37:34 ncbi-coko 51c916270054[1172]: ' at FTPContext.request (/home/node/app/node_modules/basic-ftp/dist/FtpContext.js:184:21)\n' +
Sep 03 11:37:34 ncbi-coko 51c916270054[1172]: ' at enterPassiveModeIPv6 (/home/node/app/node_modules/basic-ftp/dist/transfer.js:11:27)\n' +
Sep 03 11:37:34 ncbi-coko 51c916270054[1172]: ' at Client.prepareTransfer (/home/node/app/node_modules/basic-ftp/dist/Client.js:690:39)\n' +
Sep 03 11:37:34 ncbi-coko 51c916270054[1172]: ' at Client._uploadFromStream (/home/node/app/node_modules/basic-ftp/dist/Client.js:389:24)\n' +
Sep 03 11:37:34 ncbi-coko 51c916270054[1172]: ' at runMicrotasks (<anonymous>)\n' +
Sep 03 11:37:34 ncbi-coko 51c916270054[1172]: ' at processTicksAndRejections (node:internal/process/task_queues:96:5)\n' +
Sep 03 11:37:34 ncbi-coko 51c916270054[1172]: 'Running task launched at: Error\n' +
QA Steps
[To be completed by Coko once dev is done]