fix: running compute item cost processor

This commit is contained in:
Ahmed Bouhuolia
2025-12-28 12:30:06 +02:00
parent 872fc661ce
commit 30d8fdb4c0
2 changed files with 16 additions and 9 deletions

View File

@@ -93,7 +93,7 @@ export class InventoryComputeCostService {
*/
async scheduleComputeItemCost(itemId: number, startingDate: Date | string) {
const debounceKey = `inventory-cost-compute-debounce:${itemId}`;
const debounceTime = 1000 * 60; // 1 minute
const debounceTime = 1000 * 10; // 10 seconds
// Generate a unique job ID or use a custom identifier
const jobId = `task-${Date.now()}-${Math.random().toString(36).substring(2)}`;