-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Labels
Description
Summary
Provide a clean, documented API for launching Shoryuken programmatically within Ruby code.
Use Cases
- Dynamic configuration (build YAML at runtime)
- Loading environment variables from external sources before startup
- Adding default middleware before workers are loaded
- Integration testing with real SQS
- Embedded Shoryuken in other applications
Current Workaround
Users must call load on the bin script or use undocumented Shoryuken::Runner.instance.run.
Proposed Solution
Document and stabilize the programmatic API:
Shoryuken.boot do |config|
config.queues = ['my_queue']
config.concurrency = 10
# ...
end
Shoryuken.start # Blocking
Shoryuken.stop # Graceful shutdownOriginal Issue
Originally requested in #680, closed by stale bot. Community workarounds exist in comments.