Skip to content

Commit

Permalink
Merge pull request #243 from platanus/fix/sidekiq-bug
Browse files Browse the repository at this point in the history
Fix/sidekiq bug
  • Loading branch information
jgmontoya authored Aug 7, 2020
2 parents 784ebf6 + 3573b65 commit b43c874
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ DB_HOST=127.0.0.1
DB_PORT=$(make services-port SERVICE=postgresql PORT=5432)
DB_USER=postgres
DB_POOL=25

# Redis
REDIS_HOST=127.0.0.1
REDIS_PORT=$(make services-port SERVICE=redis PORT=6379)
2 changes: 1 addition & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
environment rack_env

# Set 1 day timeout for workers while developing
worker_timeout 1.day.seconds.to_i if rack_env == "development"
worker_timeout 24 * 60 * 60 if rack_env == "development"

on_worker_boot do
# Worker specific setup for Rails 4.1+
Expand Down
2 changes: 1 addition & 1 deletion config/sidekiq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ production:
:limits:
pull_requests: <%= ENV.fetch('SIDEKIQ_PULL_REQS_CONCURRENCY', 1) %>
reviews: <%= ENV.fetch('SIDEKIQ_REVIEWS_CONCURRENCY', 4) %>
:schedule:
# :schedule:
# an_scheduled_task:
# cron: '0 * * * * *' # Runs once per minute
# class: ExampleJob
Expand Down

0 comments on commit b43c874

Please sign in to comment.