-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit number of redis connections and fix ttl bug (#75)
* Attempting a quick workaround for gush creating a massive number of redis connection. With this design, each thread has its own redis connection (which is replaced if for some reason a new redis url is seen (should be unlikely)) * Set TTL on job key based on class not name (name includes uuid which doesn't exist in redis). Added tests to verify as well. * Clean up dependencies and fix travis CI
- Loading branch information
Showing
5 changed files
with
54 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ tmp | |
test.rb | ||
/Gushfile | ||
dump.rdb | ||
.ruby-version | ||
.ruby-gemset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ rvm: | |
- 2.2.2 | ||
- 2.3.4 | ||
- 2.4.1 | ||
- 2.5 | ||
- 2.6 | ||
- 2.7 | ||
services: | ||
- redis-server | ||
email: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters