Class: Temporalio::Worker::Plugin::RunWorkerOptions

Inherits:
Data
  • Object
show all
Defined in:
lib/temporalio/worker/plugin.rb,
lib/temporalio/worker/plugin.rb

Overview

Note:

Additional required attributes of this class may be added in the future. Users should never instantiate this class, but instead use with on it in #run_worker.

Options for #run_worker.

The options contain the worker and some other options from Temporalio::Worker#run/Temporalio::Worker.run_all. Unlike other memebers in this class, mutating the worker member before invoking the next call in the chain has no effect.

Instance Attribute Summary collapse

Instance Attribute Details

#cancellationObject (readonly)

Returns the value of attribute cancellation

Returns:

  • (Object)

    the current value of cancellation



12
13
14
# File 'lib/temporalio/worker/plugin.rb', line 12

def cancellation
  @cancellation
end

#raise_in_block_on_shutdownObject (readonly)

Returns the value of attribute raise_in_block_on_shutdown

Returns:

  • (Object)

    the current value of raise_in_block_on_shutdown



12
13
14
# File 'lib/temporalio/worker/plugin.rb', line 12

def raise_in_block_on_shutdown
  @raise_in_block_on_shutdown
end

#shutdown_signalsObject (readonly)

Returns the value of attribute shutdown_signals

Returns:

  • (Object)

    the current value of shutdown_signals



12
13
14
# File 'lib/temporalio/worker/plugin.rb', line 12

def shutdown_signals
  @shutdown_signals
end

#workerObject (readonly)

Returns the value of attribute worker

Returns:

  • (Object)

    the current value of worker



12
13
14
# File 'lib/temporalio/worker/plugin.rb', line 12

def worker
  @worker
end