Class: HotCell::Fixtures::Orphaner
- Defined in:
- lib/hot_cell/test_operations.rb
Overview
Spawns a process and does not wait for it, the way a worker that crashed mid-request would leave a tool behind. The spawned process inherits the worker's process group, so the supervisor's group sweep at reap is what must kill it — nothing else is watching it, and it has no deadline. Returns the pid so a test can watch for it.
Constant Summary
Constants inherited from Operation
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
174 175 176 |
# File 'lib/hot_cell/test_operations.rb', line 174 def perform(_inputs, _outputs) { spawned: Process.spawn("sleep", "300") } end |