Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc(wallet): Refactor wallet transaction related jobs queuing #3040

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

vincent-pochet
Copy link
Collaborator

Context

Queuing of wallet transaction related jobs is ideal as jobs as a low priority, meaning that under heavy load, they are a huge delay might happen between enqueue and processing. Since it is user facing, we need to improve it.

Description

This PR:

  • Adds a new high_priority queue that should be used for all jobs requiring an "immediate" processing
  • Moves the Invoices::PrepaidCreditJob from the wallet to the new high_priority queue
  • Moves the WalletTransactions::CreateJob from the wallet to the new high_priority queue
  • Moves Wallets::RefreshOngoingBalanceJob into the low priority queue

Note no more jobs will relies on the wallet queue, but this queue is kept fro now in the config to avoid issue with existing enqueued jobs.

@vincent-pochet vincent-pochet force-pushed the misc-high-priority-top-up branch 2 times, most recently from 3505c6a to fa7d50c Compare January 9, 2025 11:13
@vincent-pochet vincent-pochet force-pushed the misc-high-priority-top-up branch from fa7d50c to 5a649d7 Compare January 9, 2025 11:17
Copy link
Contributor

@nudded nudded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Copy link
Contributor

@ancorcruz ancorcruz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vincent-pochet vincent-pochet changed the title misc(wallet): Refacto wallet transaction related jobs queuing misc(wallet): Refactor wallet transaction related jobs queuing Jan 9, 2025
@vincent-pochet vincent-pochet merged commit e82f8d3 into main Jan 9, 2025
6 checks passed
@vincent-pochet vincent-pochet deleted the misc-high-priority-top-up branch January 9, 2025 12:31
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.

5 participants