From f9c827d698d38cdacef98347322be2941b5ce3c4 Mon Sep 17 00:00:00 2001 From: Samuel Stancl Date: Thu, 25 Jun 2026 19:39:32 -0700 Subject: [PATCH] wording --- src/Database/Concerns/HasPending.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Database/Concerns/HasPending.php b/src/Database/Concerns/HasPending.php index 922c6bdf..e3d8a6fb 100644 --- a/src/Database/Concerns/HasPending.php +++ b/src/Database/Concerns/HasPending.php @@ -112,8 +112,8 @@ trait HasPending } // Fired before the claim, so it can fire once per attempt, including for a candidate - // that ends up being claimed by a concurrent process (in which case the loop retries). - // PendingTenantPulled (below) fires exactly once, for the pulled tenant. + // that ends up being claimed by a different process (in which case the loop retries). + // PendingTenantPulled (below) fires exactly once, for the actually pulled tenant. event(new PullingPendingTenant($pullCandidate)); $tenant = DB::transaction(function () use ($pullCandidate, $attributes): ?Tenant { @@ -125,8 +125,8 @@ trait HasPending return null; } - // The tenant's pending_since was just cleared, and e.g. a PullingPendingTenant listener - // may have made changes to the tenant, so re-fetch it to get it in the correct state. + // The tenant's pending_since was just cleared, and a PullingPendingTenant listener + // may have made changes to the tenant, so re-fetch it to make sure it's up to date. /** @var Model&Tenant $pulledTenant */ $pulledTenant = static::findOrFail($pullCandidate->getKey());