-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throttling jobs via arbitrary resource - Issue #27 #183
Closed
Closed
Changes from all commits
Commits
Show all changes
103 commits
Select commit
Hold shift + click to select a range
8a9839d
Add API for handling throttling
51fbae6
initial lua code for job concurrency throttling
wr0ngway 647c5b8
pass throttle when enqueing a job
wr0ngway a48aa5c
fix typo
wr0ngway d6b5fe8
Update qless lua scripts to enable concurrency
70b1712
Only put throttle if a throttle exists
f762a2e
Update qless lua scripts for multiple throttles
3e41d42
Add throttles accessor to job
e297e55
Update lua scripts with queue throttling count
ab69d8a
Fix throttle integration
a982b6d
test fixes
69f79e6
new qless core scripts to fix throttling deadlock
5648149
updated qless scripts with no printlines
db57a0c
Add API to set throttle expiration and retrieve throttle TTL
b74a033
Merge pull request #1 from backupify/throttling
d167817
Update lua scripts
37ea6cc
expose throttles throughout UI
wr0ngway 00fcec6
fix test till cancel is fixed in qless
wr0ngway 2e47132
Merge pull request #2 from backupify/complete_throttle_ui
wr0ngway b22a90d
updated qless core lua scripts
85a49c0
Merge pull request #3 from backupify/throttling-refactor
ce13508
update throttle access for Qless::Queue
5cbc066
Merge pull request #4 from backupify/update_throttle_controls
c96a70a
basic throttle management ui
f539337
DRY test
9cdbc2c
additional comments
0216155
update throttle erb
73df52d
remove comment
7037cdb
update throttle endpoints
4d5a659
add pry to gemspec
7fb8028
can set expiration of throttles from ui
da391b4
change 'Delete' to 'Reset'
ebca222
Merge pull request #5 from backupify/throttle_ui
f2578bc
add ui for job throttles
ddc9752
fix spacing
6c439c9
Merge pull request #6 from backupify/job_throttle_ui
89de250
updated qless lua scripts
e5a9865
fix queue throttle ui
6408e5c
use throttle directly from queue for testing
6f40628
return throttle from queue for client_throttle#counts
b7ac72b
replace ':'s with '-'s for throttle classes
30e1c16
Merge pull request #7 from backupify/queue_throttle_ui_fix
51f3a50
prevent minimum version check
4ba82cb
test for skippin redis check
54cf22c
peer review suggestions
c0d8c1d
peer review
6f7bcc9
Merge pull request #8 from backupify/lazily-redis-connect
c8e1c42
ruby-version
abe5b04
updated qless core
14ac2a5
Update .ruby-version
d54e0a6
Merge pull request #10 from backupify/update-qless-core
c12b768
updated qless-core
688ecce
Merge pull request #11 from backupify/update-core
4c56ea0
adds a processing change to the procline
ceb1838
Merge pull request #12 from backupify/processing-procline
2bb4a5e
fix error in qless
9cbc49a
fix for workers becoming stuck
0fa4402
merging upstream
09a5ee3
fix test
627a36d
fix requeue from losing throttles
edce4d7
update qless-core
f4ca002
Merge pull request #14 from backupify/update-core
james-lawrence cdda62c
merge upstream
bfab8a4
update job view
aefdd3f
Merge pull request #15 from backupify/update-master
james-lawrence dd87a47
Fix brittle test.
myronmarston 0c68724
Use something more intention revealing.
myronmarston 3ca9a66
Improve RetryExceptions middleware to support exception-dependent bac…
myronmarston ec963e3
Rename `move` to `dequeue`.
myronmarston 4c95952
Use new `requeue` qless-core command.
myronmarston 1a63c47
add after_retry callback handler for RetryExceptions middleware
b49e454
add an after_requeue callback to RequeueExceptions
0f7370b
check block.nil? instead of block_given?
e0d9cdc
only allow one callback and provide explicit method for setting callback
094bbc1
get rid of unnecessary test config code
eb0b5a7
Fix typo.
myronmarston 18ad696
fix requeue from losing throttles
0fe9ee6
fix reeqeueue
d9712a9
Merge branch 'fix-requeue' of github.com:backupify/qless into fix-req…
484c387
undo bad merge
41859e7
fix bad merge
02ff8a4
fix bad merge
3fc6de1
wip
4a013c2
test fixes, cleanup
b1eed41
strong test
7e6592e
peer review
9deb039
Merge pull request #16 from backupify/fix-requeue
james-lawrence 7239d21
wip
d3d1ad2
Merge branch 'master' into reduce-subscriptions
0e20d3b
wip
55e770e
wip
2dbbb49
test fix
9f64571
combine if statements
6ae4868
Merge pull request #17 from backupify/reduce-subscriptions
james-lawrence 70c68e8
update from qless-core popop_retry branch - retry pop up to config li…
wr0ngway d13d389
dont inherit when looking up constants
e2f964b
Merge pull request #13 from backupify/use_constantize
jbodah 5425a0f
update core
df8a785
Use the backupify version of qless-core
77585b1
Update qless-core
58a8b90
Update core to fix moved job throttles
91965f3
No longer prints stack trace in qless error storage
mwooddatto cb1eed2
Merge pull request #19 from backupify/BFY-3692-qless-stack-trace-no
mwooddatto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
*.gem | ||
*~ | ||
.DS_STORE | ||
.bundle | ||
pkg/* | ||
.DS_STORE | ||
|
||
spec/redis.config.yml | ||
bundle | ||
spec/tmp | ||
coverage | ||
bin | ||
|
||
phantomjs/ | ||
|
||
.rspec-local |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "lib/qless/qless-core"] | ||
path = lib/qless/qless-core | ||
url = https://github.com/seomoz/qless-core.git | ||
url = https://github.com/backupify/qless-core.git | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) | ||
|
||
require 'irb/completion' | ||
|
||
QLESS_CONSOLE = true | ||
|
||
require 'qless' | ||
|
||
module StdoutLogger | ||
def logger | ||
@logger ||= Logger.new($stdout) | ||
end | ||
end | ||
|
||
# Load everything! | ||
Dir["./lib/**/*.rb"].sort.each do |f| | ||
require f.gsub("./lib/", "") | ||
end | ||
|
||
require 'pp' |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this line should not be pushed upstream.