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

Reset the retryUntil value #736

Merged
merged 2 commits into from
Dec 30, 2019
Merged

Reset the retryUntil value #736

merged 2 commits into from
Dec 30, 2019

Conversation

themsaid
Copy link
Member

No description provided.

protected function prepareNewTimeout($payload)
{
return $payload['timeoutAt']
? Chronos::now()->addSeconds(ceil($payload['timeoutAt'] - $payload['pushedAt']))->getTimestamp()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@themsaid that is a nice solution, very good, thank you !

We had solved this internally by just overriding the RetryFailedJob class and setting timeoutAt to null, but this looks like a better approach indeed. But that's exactly why I haven't pushed a pull request; I didn't feel like I could make the best code decisions while contributing to Horizon just yet.

@satyago
Copy link

satyago commented Dec 30, 2019

I know I'm not supposed to review stuff, but I did haha.
Thank you !

@taylorotwell taylorotwell merged commit b1df832 into laravel:3.0 Dec 30, 2019
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 this pull request may close these issues.

3 participants