Skip to content

[_]: test/bullmq#949

Closed
jzunigax2 wants to merge 9 commits into
masterfrom
test/bullmq
Closed

[_]: test/bullmq#949
jzunigax2 wants to merge 9 commits into
masterfrom
test/bullmq

Conversation

@jzunigax2
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for more than 15 days with no activity.

…handling

- Added UsageQueueModule to manage usage recomputation jobs.
- Integrated BullMQ for job processing with Redis connection configuration.
- Created UsageQueueProcessor to handle job execution and logging.
- Implemented UsageEventHandler to enqueue jobs on usage invalidation events.
- Updated configuration to include BullMQ Redis connection string.
… files, and folders

- Added EventEmitter2 to BackupUseCase, FileUseCases, and FolderUseCases for usage event emissions.
- Emitted usage invalidation events on delete, create, and trash actions for files, backups, and folders.
- Updated cache manager service to handle user storage usage with detailed drive and backup metrics.
…odularity

- Created a new constants file for usage queue related constants.
- Updated imports in usage queue module, processor, and event handler to reference the new constants file.
- Modified event handler to use a wildcard for event listening on usage invalidation.
…sage tracking

- Updated BackupUseCase to return results from deleteDevicesBy and deleteBackupByUserAndId methods.
- Enhanced event emissions for usage tracking upon deletion of backups and devices.
- Modified cache manager service tests to reflect new usage data structure with drive and backup metrics.
- Replaced direct event emissions with a dedicated emitUsageInvalidated function across BackupUseCase, FileUseCases, and FolderUseCases for better consistency and maintainability.
- Updated the UsageInvalidatedEvent structure to use an interface, enhancing type safety.
- Adjusted event handler to utilize a deduplication strategy for usage events, improving performance and reliability.
- Implemented unit tests for UsageQueueProcessor to verify job processing and caching behavior.
- Added tests for UsageEventHandler to ensure correct job enqueuing with deduplication on usage invalidation events.
- Enhanced test coverage for asynchronous operations and error handling in the queue.
@sonarqubecloud
Copy link
Copy Markdown

@jzunigax2 jzunigax2 closed this Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant