class Gladys::Actions::Base
def invoke(action, threads:, should_stop: -> { true })
Only runs once by default.
Runs the action until the should_stop block returns true.
def invoke(action, threads:, should_stop: -> { true }) @context.run_action(action, threads: threads, should_stop: should_stop) end