bavix / laravel-wallet

It's easy to work with a virtual wallet
https://bavix.github.io/laravel-wallet/
MIT License
1.15k stars 230 forks source link

Timeout on BigDecimal operation #991

Closed sinamiandashti closed 2 months ago

sinamiandashti commented 3 months ago

Describe your task Hello

I got the following error (sometimes) during withdraw money on wallets

To Reproduce not really reproducable (happening sometimes)

Trace Error Maximum execution time of 30 seconds exceeded {"userId":5806,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/panel/vendor/bavix/laravel-wallet/src/Internal/Service/MathService.php:17)

Expected behavior no timeout

Screenshots If applicable, add screenshots to help explain your problem.

Server:

Additional context

does this means that we need to put this operation in a laravel job to be async and no timeout?

rez1dent3 commented 3 months ago

@sinamiandashti Hello. Without a stack trace it's hard to say. Math operations are fast, very fast, and can be sped up by installing bcmath.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 7 days with no activity.