Attach our env to the worker from the CLI
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
module Producer
|
||||
module Core
|
||||
class Worker
|
||||
attr_accessor :env
|
||||
|
||||
def initialize(env)
|
||||
@env = env
|
||||
end
|
||||
|
||||
def process(tasks)
|
||||
tasks.each { |t| process_task t }
|
||||
end
|
||||
|
Reference in New Issue
Block a user