This interface allows you to manually trigger the pool prize processing for lotto tournaments.
Monitoring
Monitor the status of pool prize processing and related metrics.
Documentation
How Pool Prize Processing Works
The pool prize processor automatically adds active lottery tickets to the prize pool for each tournament. It runs every minute to ensure tickets are processed in real-time.
Processing Workflow
Identify Active Tournaments - Finds all tournaments with `isActive = 1` and `display = 1`
Find Eligible Tickets - Locates tickets with `isActive = 1` and `addedToThePoolPrize = false`
Random Selection - Randomly selects a subset of eligible tickets (up to 10% of total)
Update Tickets - Sets `addedToThePoolPrize = true` for selected tickets
Update Tournament - Adds ticket prices to `totalRegistrationAmount` for the tournament
Processing Algorithm
Each minute, the processor:
Scans All Active Tournaments - Processes every tournament that is currently active
Processes Tickets Efficiently - Only processes a small subset of tickets each run to avoid system overload
Maintains Fair Distribution - Uses random selection to ensure fair processing across all tickets
Tracks Financial Impact - Accurately tracks and updates prize pool amounts
Setup Instructions
Method 1: Using Shell Script (Recommended for Production)