f1967d55192a649cc2a76bed6105c1c1ba51ebd6
Root cause: Promise.all() waits for ALL promises, so a single hung/slow request blocks the entire batch. With 5001 promises and 16 concurrent limit, timeouts cause cascading delays that appear as 'scan stopped'. Fix: - Extract processSingleActivity() helper function - Use Promise.allSettled() instead of Promise.all() - Each promise handles its own success/error counting - Prevents single hung promise from blocking entire scan Impact: Scan should now complete all 5001 IDs without getting stuck
How to Run
copy example.env
cp example.env .env
edit .env
API_USERNAME is your engage username in URL-encode.
API_PASSWORD is your engage password in URL-encode.
Description
Languages
TypeScript
98.1%
Dockerfile
1.1%
Shell
0.8%