From e00ee08ae7e64d04d40378791d2cc740de405965 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 12 Oct 2023 22:18:01 -0700 Subject: [PATCH] Revert timeout back to 1 Oh okay, I was misinterpreting the error: it was that our NEOPETS_URL_ORIGIN secret value isn't the real Neopets.com IP address anymore, so amfphp requests were just plain *always* failing in production. Oops! I've remove that environment variable from our production config, and now modeling is working in the bulk thing! Also I'm noticing that we're using puma these days, which does good threading stuff. I think there might be merit to switching over to Falcon because of just how async-y our stuff is, but having 5 threads going is honestly probably good enough that I don't need to worry too much about mutual blocking, and could probably just write stuff to get Neopia out of the picture like *right now*. Neat! --- app/controllers/pets_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/pets_controller.rb b/app/controllers/pets_controller.rb index 13d0dd07..a4456839 100644 --- a/app/controllers/pets_controller.rb +++ b/app/controllers/pets_controller.rb @@ -14,7 +14,7 @@ class PetsController < ApplicationController @pet = Pet.load( params[:name], :item_scope => Item.includes(:translations), - :timeout => 2 + :timeout => 1 ) points = contribute(current_user, @pet)