class Gladys::Actions::Base

def invoke(action, threads:, should_stop: -> { true })

Returns an object containing the metrics of the run.

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