Class: HotCell::Fixtures::Fatal

Inherits:
Operation show all
Defined in:
lib/hot_cell/test_operations.rb

Overview

Exception so it escapes serve's rescue StandardError and reaches run, the only path that writes worker.crashed.

Constant Summary

Constants inherited from Operation

Operation::READ_BYTES

Instance Method Summary collapse

Methods inherited from Operation

abstract_operation, abstract_operation?, before_fork, before_worker_boot, inherited, limits, operation, operation_name, #run_tool, unreadable

Instance Method Details

#perform(_inputs, _outputs) ⇒ Object

Raises:

  • (Exception)


134
135
136
# File 'lib/hot_cell/test_operations.rb', line 134

def perform(_inputs, _outputs)
  raise Exception, "a worker cannot answer for this one"
end