Closed alChaCC closed 6 years ago
I’m not sure I have enough info to make a judgment. Do you see an error? If so, what is it along with the stack trace?
On Tue, Nov 14, 2017 at 11:54 PM Aloha notifications@github.com wrote:
Hi, I have a weird question.
I have a method which is to list file from Google Drive
class FileFinder def self.find_from_google_drive(file_name) scopes = [Google::Apis::DriveV3::AUTH_DRIVE_READONLY] Google::Apis::RequestOptions.default.authorization = Google::Auth.get_application_default(scopes) drive = Google::Apis::DriveV3::DriveService.new drive.list_files(q: "name='#{file_name}'") end end
and I have a job
class RatesJob include SuckerPunch::Job workers 1
def perform(file_name:) FileFinder.find_from_google_drive(file_name) end end
it works well until I updated my GOOGLE_PRIVATE_KEY. (I deleted old key)
Is it related to cached .env ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/brandonhilkert/sucker_punch/issues/208, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtbFAAO0vdtG6vk3ja6tAeYeObUZpHrks5s2m6SgaJpZM4QeZIS .
--
hi @brandonhilkert, sorry for your time I guess it's due to cache such as pre-load all environment variables and cached it. After I restarted server, it works well now.
Hi, I have a weird issue.
I have a method which is to list file from Google Drive
and I have a job
it works well until I updated my
GOOGLE_PRIVATE_KEY
. (I deleted old key)Is it related to cached
.env
? how to fix this? restart server ? I tried to re-deploy and also re-load puma, but it doesn't work