Class: ProcessExecuter::TimeoutError

Inherits:
SignaledError
  • Object
show all
Defined in:
lib/process_executer/errors.rb

Overview

Raised when the command takes longer than the configured timeout_after

Examples:

begin
  ProcessExecuter.spawn_with_timeout('sleep 1', timeout_after: 0.1)
rescue ProcessExecuter::TimeoutError => e
  puts "Command timed out: #{e.result.command}"
end