lib/ruote/worker.rb
# If worker_state_enabled is set, check for a potential new state.
#
If worker_state_enabled is set, check for a potential new state.
If worker_state_enabled is set check for a potential new state .
def determine_state
      @state_mutex.synchronize do
        @state = (
          @storage.get('variables', 'worker') || { 'state' => 'running' }
        )['state'] if @state != 'stopped' && @context['worker_state_enabled']
      end
    end
def determine_state @state_mutex . synchronize do @state = ( @storage . get ( 'variables' , 'worker' ) || { 'state' => 'running' } ) [ 'state' ] if @state != 'stopped' && @context [ 'worker_state_enabled' ] end end
If worker_state_enabled is set, check for a potential new state.
If worker_state_enabled is set check for a potential new state .