Description
Queue async jobs for chain submission and retries instead of blocking HTTP handlers.
Requirements and context
- Dead letter queue behavior documented.
- Redis as broker.
Suggested execution
- Fork the repository and create a branch (example below).
- Implement changes in StreamPay-Backend (TypeScript / Express per
package.json).
- Keep the service secure, tested, and documented; prefer small, reviewable PRs.
git checkout -b feature/bullmq-chain-jobs
Implementation targets
src/queues/chainQueue.ts.
- Worker process file.
Tests and validation
-
Tests: enqueue and process with mock processor.
-
Run npm test and npm run lint in StreamPay-Backend.
-
Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
- Target minimum 95% test coverage on new or changed backend code (or justify gaps).
- Clear documentation (OpenAPI / README / inline docs as specified).
- Timeframe: 96 hours from assignment.
Example commit message
feat(backend): job queue for asynchronous chain operations
Description
Queue async jobs for chain submission and retries instead of blocking HTTP handlers.
Requirements and context
Suggested execution
package.json).Implementation targets
src/queues/chainQueue.ts.Tests and validation
Tests: enqueue and process with mock processor.
Run
npm testandnpm run lintinStreamPay-Backend.Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
Example commit message