refactor(CleanupRedis): remove JSON decode error handling from cleanupStuckJobs method
This commit is contained in:
parent
b79aa1b195
commit
ad69758c56
1 changed files with 0 additions and 9 deletions
|
|
@ -394,15 +394,6 @@ private function cleanupStuckJobs($redis, string $prefix, bool $dryRun, bool $is
|
|||
continue;
|
||||
}
|
||||
|
||||
// Check for JSON decode errors
|
||||
if ($payloadData === null || json_last_error() !== JSON_ERROR_NONE) {
|
||||
$errorMsg = json_last_error_msg();
|
||||
$truncatedPayload = is_string($payload) ? substr($payload, 0, 200) : 'non-string payload';
|
||||
$this->error("Failed to decode job payload for {$keyWithoutPrefix}: {$errorMsg}. Payload: {$truncatedPayload}");
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
$jobClass = data_get($payloadData, 'displayName', 'Unknown');
|
||||
|
||||
// Prefer reserved_at (when job started processing), fallback to created_at
|
||||
|
|
|
|||
Loading…
Reference in a new issue