move queue config load logic into rake task.