Skip to content

Commit

Permalink
Background Jobs: Fix environment variable check (#2768)
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo authored Nov 13, 2024
1 parent 55c70ff commit 31a3806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/jobs/clean_up_pushes_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def perform(*args)
private

def logger
@logger ||= if ENV.key?(PWP_WORKER)
@logger ||= if ENV.key?("PWP_WORKER")
# We are running inside the pwpush-worker container. Log to STDOUT
Logger.new($stdout)
else
Expand Down
2 changes: 1 addition & 1 deletion app/jobs/expire_pushes_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def perform(*args)
private

def logger
@logger ||= if ENV.key?(PWP_WORKER)
@logger ||= if ENV.key?("PWP_WORKER")
# We are running inside the pwpush-worker container. Log to STDOUT
# so that docker logs works to investigate problems.
Logger.new($stdout)
Expand Down

0 comments on commit 31a3806

Please sign in to comment.