Skip to content

Instantly share code, notes, and snippets.

Alexandre Friquet afriqs

Block or report user

Report or block afriqs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ActiveAdmin Circular Dependency Error
[Fri Mar 21 16:56:31 2014] [info] mod_fcgid: server app.domain.tld:/path/to/rails/root/current/public/dispatch.fcgi(3478208) started
/path/to/rails/root/shared/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:461:in `load_missing_constant': Circular dependency detected while autoloading constant Manager (RuntimeError)
from /path/to/rails/root/shared/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:184:in `const_missing'
from /path/to/rails/root/releases/20140321092310/app/admin/manager.rb:1:in `<top (required)>'
from /path/to/rails/root/shared/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:424:in `load'
from /path/to/rails/root/shared/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:424:in `block in load_file'
from /path/to/rails/root/shared/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:616:in `new_constants_in'
from /path/to/rails/root/shared/bundle/ruby/
afriqs / delayed_job_monitor_restart.rake
Created Jan 17, 2012
Rake task to restart delayed_job_monitor if app not in maintenance mode
View delayed_job_monitor_restart.rake
# Workers are watched by built-in delayed_job_monitor
# Use [bundle exec] rake jobs:restart to restart delayed_job_monitor
# * if app in maintenance mode (cf. maintenance.html), will do nothing
# * else if delayed_job_monitor yet running, will do nothing
# * else will restart delayed_job_monitor
# Can be used via a cron, for example :
# 15 * * * * RAILS_ENV=testing bundle exec rake jobs:restart
namespace :jobs do
desc "Restart delayed_job_monitor if no worker yet running"
You can’t perform that action at this time.