Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to create
LongRunnable
Agent gems
Instead of explicitly requiring `agent_runner`, reply on the Rails autoloader. This prevents the file being loaded twice if a Agent gem uses `LongRunnable::Worker`. Inheriting triggers auto loading of the `AgentRunner` class very early in the boot process. This initializes the long runnable Agent registry and fills the `@@agents` array with all LongRunnable agents. When `lib/agent_runner` was then required again in `bin/pre_runner_boot.rb`, the class is re-loaded and the long runnable Agent registry was empty. #2704
- Loading branch information