lib/ruote/dashboard.rb
def worker_state

      doc =
        @context.storage.get('variables', 'worker') ||
        { 'type' => 'variables', '_id' => 'worker', 'state' => 'running' }

      doc['state']
    end
# Returns the state the workers are supposed to be in right now.
# It's usually 'running', but it could be 'stopped' or 'paused'.
#
Returns the state the workers are supposed to be in right now.
Returns the state the workers are supposed to be in right now .
def worker_state
      doc =
        @context.storage.get('variables', 'worker') ||
        { 'type' => 'variables', '_id' => 'worker', 'state' => 'running' }
      doc['state']
    end
def worker_state doc = @context . storage . get ( 'variables' , 'worker' ) || { 'type' => 'variables' , '_id' => 'worker' , 'state' => 'running' } doc [ 'state' ] end
Returns the state the workers are supposed to be in right now.
Returns the state the workers are supposed to be in right now .