Skip to content

Commit 6c439c9

Browse files
author
Gregory Salmon
committed
Merge pull request #6 from backupify/job_throttle_ui
add ui for job throttles
2 parents ebca222 + ddc9752 commit 6c439c9

File tree

4 files changed

+311
-225
lines changed

4 files changed

+311
-225
lines changed

lib/qless/job.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ def ttl
167167
@expires_at - Time.now.to_f
168168
end
169169

170+
def throttle_objects
171+
throttles.map { |name| Throttle.new(name, client) }
172+
end
173+
170174
def reconnect_to_redis
171175
@client.redis.client.reconnect
172176
end

0 commit comments

Comments
 (0)