Method: Temporalio::Worker#run
- Defined in:
- lib/temporalio/worker.rb
#run { ... } ⇒ Object
Note:
A worker is only intended to be started once. Initialize a new worker should you need to run it again.
Run the worker and wait on it to be shut down.
This will not return until shutdown is complete (and all running activities finished) and will raise if there is a worker fatal error. To run multiple workers use the class method run.
118 119 120 |
# File 'lib/temporalio/worker.rb', line 118 def run(&block) Runner.new(self).run(&block) end |