Module: Taskflow

Defined in:
lib/taskflow.rb,
lib/taskflow/version.rb

Defined Under Namespace

Classes: Flow, Logger, Record, Task, Worker

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Taskflow)

    the object that the method was called on



16
17
18
# File 'lib/taskflow.rb', line 16

def self.configure
    yield self
end

.worker_options=(opts) ⇒ Object



11
12
13
14
# File 'lib/taskflow.rb', line 11

def self.worker_options=(opts)
    orig = HashWithIndifferentAccess.new(Worker.sidekiq_options_hash || {})
    Worker.sidekiq_options_hash = orig.merge(opts).merge(retry: false)
end