episode-130/mailit/vendor/plugins/workling/lib/workling/remote/runners/base.rb
# internal template method takes care of suppressing remote errors but raising Workling::WorklingNotFoundError
# where appropriate. swallow workling exceptions so that this behaves like remote code.
# otherwise StarlingRunner and SpawnRunner would behave too differently to NotRemoteRunner.
internal template method takes care of suppressing remote errors but raising Workling::WorklingNotFoundError
where appropriate. swallow workling exceptions so that this behaves like remote code.
otherwise StarlingRunner and SpawnRunner would behave too differently to NotRemoteRunner.
internal template method takes care of suppressing remote errors but raising Workling :: WorklingNotFoundError where appropriate . swallow workling exceptions so that this behaves like remote code . otherwise StarlingRunner and SpawnRunner would behave too differently to NotRemoteRunner .
def run_with_error_handling(clazz, method, options = {})
          begin 
            self.run(clazz, method, options)
          rescue Exception => e
            raise e if e.kind_of? Workling::WorklingError
            logger.error "WORKLING: runner could not invoke #{ clazz }:#{ method } with #{ options.inspect }. error was: #{ e.inspect }"
          end
        end
def run_with_error_handling ( clazz , method , options = { } ) begin self . run ( clazz , method , options ) rescue Exception => e raise e if e . kind_of? Workling :: WorklingError logger . error "WORKLING: runner could not invoke #{ clazz }:#{ method } with #{ options.inspect }. error was: #{ e.inspect }" end end
internal template method takes care of suppressing remote errors but raising Workling::WorklingNotFoundError
where appropriate.
internal template method takes care of suppressing remote errors but raising Workling :: WorklingNotFoundError where appropriate .
clazz
method
options