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

Set 0 as the default runtime of the job #1307

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

AsemAlalami
Copy link
Contributor

Sometimes Stopwatch::check returns null, so when trying to update job metrics the LuaScript failed with this error

ERR user_script:11: attempt to perform arithmetic on a nil value script: 0ac1d0b183ba9e097017cf4800a6a65400ae3539, on @user_script:11.

the exception happened when trying to parse runtime (the value was null or blank) to number tonumber(ARGV[1])

In this PR, I set zero to be the default runtime

@taylorotwell taylorotwell merged commit 16f2c0e into laravel:5.x Aug 29, 2023
12 checks passed
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.

2 participants