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

prevent out of memory exception backfilling awards #3154

Merged

Conversation

Jamiras
Copy link
Member

@Jamiras Jamiras commented Jan 30, 2025

Prevents

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 414

   Symfony\Component\ErrorHandler\Error\FatalError 

  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

Trying to backfill contribution awards for the RAEvents users.

sail artisan ra:platform:developer:update-contribution-yield RAEvents

I'm not sure if this is happening in prod, but I noticed it in my horizon output:

  2025-01-30 00:53:26 App\Platform\Jobs\UpdateDeveloperContributionYieldJob  RUNNING

   Symfony\Component\ErrorHandler\Error\FatalError 

  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:414
    410▕             $this->bindValues($statement, $this->prepareBindings($bindings));
    411▕ 
    412▕             $statement->execute();
    413▕ 
  ➜ 414▕             return $statement->fetchAll();
    415▕         });
    416▕     }
    417▕ 
    418▕     /**


   Whoops\Exception\ErrorException 

@Jamiras Jamiras merged commit e5e5db9 into RetroAchievements:master Jan 30, 2025
8 checks passed
@Jamiras Jamiras deleted the bugfix/backfill_dev_badges_chunked branch January 30, 2025 23:16
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