lib/asynchronic/worker.rb in asynchronic-1.6.3 vs lib/asynchronic/worker.rb in asynchronic-2.0.0
- old
+ new
@@ -21,10 +21,10 @@
env.load_process(pid).execute
end
end
def stop
- Asynchronic.logger.info('Asynchronic') { "Stopping worker of #{@queue_name} (#{Process.pid})" }
+ Asynchronic.logger.info('Asynchronic') { "Stopping worker of #{queue_name} (#{Process.pid})" }
listener.stop
end
def self.start(queue_name, &block)
worker = new queue_name, Asynchronic.environment
\ No newline at end of file