Class: Workling::Remote::Runners::Base
- Inherits:
-
Object
- Object
- Workling::Remote::Runners::Base
- Defined in:
- lib/workling/remote/runners/base.rb
Direct Known Subclasses
BackgroundjobRunner, ClientRunner, NotRemoteRunner, SpawnRunner
Instance Method Summary collapse
-
#dispatch!(clazz, method, options) ⇒ Object
find the worker instance and invoke it.
-
#logger ⇒ Object
default logger defined in Workling::Base.logger.
Instance Method Details
#dispatch!(clazz, method, options) ⇒ Object
find the worker instance and invoke it. Invoking the worker method like this ensures for consistent logging and handling of propagated exceptions.
36 37 38 |
# File 'lib/workling/remote/runners/base.rb', line 36 def dispatch!(clazz, method, ) Workling.find(clazz, method).dispatch_to_worker_method(method, ) end |