-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
eveapi/src/Jobs/Wallet/WalletTransactionBase.php
Lines 114 to 138 in da5556b
| private function dispatchFollowUpJobs() | |
| { | |
| $this->dispatchMissingTypeJobs(); | |
| $this->dispatchMissingLocationJobs(); | |
| } | |
| private function dispatchMissingTypeJobs() | |
| { | |
| WalletTransaction::query() | |
| ->doesntHave('type') | |
| ->pluck('type_id') | |
| ->unique() | |
| ->each(fn ($type_id) => ResolveUniverseTypeByIdJob::dispatch($type_id)->onQueue('high')); | |
| } | |
| private function dispatchMissingLocationJobs() | |
| { | |
| $refresh_token = $this->getRefreshToken(); | |
| WalletTransaction::query() | |
| ->doesntHave('location') | |
| ->pluck('location_id') | |
| ->unique() | |
| ->each(fn ($location_id) => ResolveLocationJob::dispatch($location_id, $refresh_token)->onQueue('high')); | |
| } |
Ideas:
- One could leverage the maintenance job to handle the follow up jobs
- add the follow up jobs to the batch if batching
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels