mirror of
https://github.com/endofunky/sidetiq.git
synced 2022-11-09 13:53:30 -05:00
Delegate table flipping to Sidekiq.
This commit is contained in:
parent
70ed46b938
commit
452d946e8a
1 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
# encoding: utf-8
|
||||
|
||||
# stdlib
|
||||
require 'monitor'
|
||||
require 'ostruct'
|
||||
|
@ -21,6 +23,13 @@ require 'sidetiq/version'
|
|||
# The Sidetiq namespace.
|
||||
module Sidetiq
|
||||
class << self
|
||||
# Public: Flip-table API.
|
||||
#
|
||||
# Delegates to Sidekiq's flip-table API.
|
||||
def ❨╯°□°❩╯︵ ┻━┻
|
||||
Sidekiq.❨╯°□°❩╯︵ ┻━┻
|
||||
end
|
||||
|
||||
# Public: Returns an Array of workers including Sidetiq::Schedulable.
|
||||
def workers
|
||||
schedules.keys
|
||||
|
@ -129,4 +138,3 @@ module Sidetiq
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue