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

Undefined array key "pushedAt" - Restarting Failed Queued Listener #1210

Closed
stevebauman opened this issue Nov 4, 2022 · 0 comments · Fixed by #1211
Closed

Undefined array key "pushedAt" - Restarting Failed Queued Listener #1210

stevebauman opened this issue Nov 4, 2022 · 0 comments · Fixed by #1211

Comments

@stevebauman
Copy link
Contributor

  • Horizon Version: 5.10.3
  • Laravel Version: 9.37.0
  • PHP Version: 8.0
  • Redis Driver & Version: predis/phpredis 1.1.10
  • Database Driver & Version: MySQL 8.0

Description:

When retrying a queued listener that failed via Horizon in the "Failed Jobs" UI, I then receive the exception:

Undefined array key "pushedAt"

? CarbonImmutable::now()->addSeconds(ceil($retryUntil - $payload['pushedAt']))->getTimestamp()

Here is a snippet of the payload that is stored in the database (notice, no pushedAt key):

stdClass Object
(
    [uuid] => 7649887c-e9db-4831-9fce-477dbd30609e
    [timeout] => 
    [id] => KBVxg6bsjl4YpWxixgmdXUNeos67Yyt5
    [backoff] => 
    [displayName] => XXXX
    [maxTries] => 3
    [failOnTimeout] => 
    [maxExceptions] => 3
    [retryUntil] => 1667648168
    [job] => Illuminate\Queue\CallQueuedHandler@call
    [data] => stdClass Object
        (
            [command] => O:36:"Illuminate\Events\CallQueuedListener":19:...
            [commandName] => Illuminate\Events\CallQueuedListener
        )
    [attempts] => 2
)

Screenshot 2022-11-04 at 10 17 00 AM

Steps To Reproduce:

Working on a PR 👍

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 a pull request may close this issue.

1 participant