mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-16 11:51:43 +00:00
Unified background worker initialization into pre_runner_boot Set Rails.configuration.cache_classes = true for background workers
13 lines
244 B
Ruby
13 lines
244 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
require_relative './pre_runner_boot'
|
|
|
|
agent_runner = AgentRunner.new
|
|
|
|
# We need to wait a bit to let delayed_job set it's traps so we can override them
|
|
Thread.new do
|
|
sleep 5
|
|
agent_runner.set_traps
|
|
end
|
|
|
|
agent_runner.run
|