feat: add bulk-disable-import-audit-processor task handler#244
feat: add bulk-disable-import-audit-processor task handler#244prithipalpatwal wants to merge 2 commits intomainfrom
Conversation
Introduces a new bulk handler that processes N sites in a single invocation — disabling imports per site and calling configuration.save() once for all sites — eliminating the race condition that occurred when N parallel disable-import-audit-processor invocations each wrote the shared Configuration object concurrently. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
High Severity Issues
Medium Severity Issues
Low Severity Issues
|
- Wrap Configuration.findLatest() in try/catch; return 500 on failure - Return internalServerError (500) instead of ok (200) on configuration.save() failure - Process sites in parallel batches of 10 (SITE_BATCH_SIZE) via Promise.allSettled - Handle per-site scheduledRun field; skip individual sites when true - Validate siteUrl before calling findByBaseURL; record error for missing/null values - Wrap Slack summary calls in try/catch to prevent SQS retries on Slack failures - Sanitize error messages sent to Slack (no internal details like ARNs or table names) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
This PR will trigger a minor release when merged. |
High Severity — all fixed:
Medium Severity — all fixed:
Low Severity — all fixed:
|
Introduces a new bulk handler that processes N sites in a single invocation — disabling imports per site and calling configuration.save() once for all sites — eliminating the race condition that occurred when N parallel disable-import-audit-processor invocations each wrote the shared Configuration object concurrently.
Please ensure your pull request adheres to the following guidelines:
Related Issues
Thanks for contributing!