Problem
Operations like PDF generation, Stellar contract calls, and bulk exports are slow synchronous operations that block the request-response cycle. bull and @nestjs/bull are available but not configured.
Proposed Solution
Create backend/src/opsce/queue/ with a QueueModule, an AssetProcessor for asset-related jobs, and a queue producer service. Use Redis as the BullMQ backend.
Acceptance Criteria
Problem
Operations like PDF generation, Stellar contract calls, and bulk exports are slow synchronous operations that block the request-response cycle.
bulland@nestjs/bullare available but not configured.Proposed Solution
Create
backend/src/opsce/queue/with aQueueModule, anAssetProcessorfor asset-related jobs, and a queue producer service. Use Redis as the BullMQ backend.Acceptance Criteria
QueueModuleconfigured with Redis usingREDIS_HOSTandREDIS_PORTenv variablesasset-processorhandles:generate-pdfandstellar-tokenizejob typesGET /api/assets/:id/reportenqueues agenerate-pdfjob and returns ajobIdimmediatelyGET /api/queue/jobs/:jobIdreturns job status (waiting/active/completed/failed)jobId,type, and error message