Skip to content

Not working on rails 4 server running on daemon mode (-d) #165

@messutied

Description

@messutied

Tested with the simple example from the readme:

# config/initializers/scheduler.rb

require 'rufus-scheduler'

s = Rufus::Scheduler.singleton

s.every '1m' do
  Rails.logger.info "hello, it's #{Time.now}"
end

When starting the rails server with rails server -d &, rufus scheduled tasks won't fire up.

I've found out that adding s.join at the end of the script fixes the issue when running as daemon, but when running just as rails server the web server won't work, so I guess this is not intended to be used with rails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions