Registry / utility / spawnling

spawnling

JSON →
library2.1.6rbrubygemsunverified

Provides a Spawnling class to easily fork or thread long-running code sections, with automatic database connection handling for ActiveRecord.

gem install spawnling
INSTALL
IMPORT
SIG · SPAWNLING
S
spawnling
utilityrubyv2.1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Spawnling
require 'spawnling'

Run a block in a background thread or fork

require 'spawnling' Spawnling.new do # long-running task sleep 5 puts 'done' end
Debug
Known issues
gotchaForking may cause issues with database connections if not properly managed.
fix
Ensure ActiveRecord reconnects after fork, or use threading mode.
affects: >= 2.0.0
Upgrade
Version history
2.1.6latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
32
Resources
spawnling — gem install spawnling · libregistry