lib/legion/extensions/actors/base.rb in legionio-0.2.0 vs lib/legion/extensions/actors/base.rb in legionio-0.3.0
- old
+ new
@@ -1,25 +1,21 @@
-# frozen_string_literal: true
-
require 'hashdiff'
module Legion
module Extensions
module Actors
module Base
include Legion::Extensions::Helpers::Lex
def runner
- # runner_class:, function:, task_id: nil, args: nil, check_subtask: true, generate_task: true, parent_id: nil, master_id: nil, **opts
- Legion::Runner.run(runner_class: runner_class, function: function, check_subtask: check_subtask, generate_task: generate_task)
+ Legion::Runner.run(runner_class: runner_class, function: function, check_subtask: check_subtask?, generate_task: generate_task?)
rescue StandardError => e
Legion::Logging.error e.message
Legion::Logging.error e.backtrace
end
def manual
- # Legion::Runner.run(runner_class: runner_class, function: runner_function, check_subtask: false, generate_task: false, args: args)
- runner_class.send(runner_function, args)
+ runner_class.send(runner_function, **args)
rescue StandardError => e
Legion::Logging.error e.message
Legion::Logging.error e.backtrace
end