Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6045905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:10:36+00:00 2026-05-23T07:10:36+00:00

[edit] I can delay all mail using delayed_job plugin on a shared server with

  • 0

[edit] I can delay all mail using delayed_job plugin on a shared server with a daemon… except the mail using authlogic.
I don’t know where I have to search, and why it is working in other way.

daemons (off) delayed_job & delayed_mail_mailer (on) authlogic (reset_password) : send
daemons (on) delayed_job & delayed_mail_mailer (on) other_model (send_mail) : send
daemons (on) delayed_job & delayed_mail_mailer (on) authlogic (reset_password) : nothing !

Where to search the problem ??

app/initializer/delayed_mailer.rb :

class ActionMailer::Base
  include Delayed::Mailer
end

config/initializers/delayed_job_config.rb :

Delayed::Job.destroy_failed_jobs = false
silence_warnings do
  Delayed::Job.const_set("MAX_ATTEMPTS", 3)
  Delayed::Job.const_set("MAX_RUN_TIME", 5.minutes)
end

script/dalayed_job :

#!/usr/bin/env ruby 
require 'rubygems' 
require 'daemons' 
dir = File.expand_path(File.join(File.dirname(__FILE__), '..')) 
daemon_options = { 
  :multiple   => false, 
  :dir_mode   => :normal, 
  :dir        => File.join(dir, 'tmp', 'pids'), 
  :backtrace  => true, 
  :log_output => true 
} 

Daemons.run_proc('delayed_job', daemon_options) do 
  Dir.chdir dir 
  RAILS_ENV = ENV['RAILS_ENV'] || 'development' 
  require File.join('config', 'environment') 
  Delayed::Worker.new.start 
end

model/controllers/passwoed_reset_controller.rb

  def create
    @user = User.find_by_email(params[:email])
    if @user
      Notifier::deliver_password_reset_instructions(@user)
      flash[:notice] =  t('ResetInstructionSend') + t('CheckMail')
      redirect_to root_url
    else
      flash[:notice] = t('NoUserMail')
      render :action => :new
    end
  end

controllers/other_controller.rb

 def update    
    @patent = Patent.find(params[:id])
    # update all
    @patent.update_attributes(params[:patent])
      @user = @patent.user
      @skill = @patent.skill
      @current_user = current_user
      Notifier::deliver_specialist_confirmation(@user, @skill, @current_user)
   end

models/notifier.rb

def password_reset_instructions(user)
    recipients user.email
    from       "Skill Forest"
    subject       "Password Reset Instructions"
    body          :edit_password_reset_url => edit_password_reset_url(user.perishable_token),:user => user

end

def specialist_confirmation (user, skill, current_user)
  recipients  user.email
  from       "Skill Forest"
  subject    "Bravo"
  body        :user => user, :skill => skill, :current_user => current_user
end

More infos : Rails 2.3.5 & tobi delayed_job & daemons 1.0.10
I’m on dreamhost shared web hosting, but look the same on development mode on my computer.

[Edit 2] I will control to be sure, but seems it was only the max run time too short…

[Edit 3] an other way I’m trying : control if pid exist

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:10:37+00:00Added an answer on May 23, 2026 at 7:10 am

    Just to turn the page… passing in Rails 3 and updating gem… everything fine. And much simpler.

    Mystery of binary coding !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've found that on some occasions I can edit the source while debugging. Are
I'm integrating my application so that it can edit files stored in SharePoint. I'm
I'm working on a system were a user can edit existing objects (Filter domain
I am coding a feature in a program where users can edit documents stored
I'm not sure what this practice is actually called, so perhaps someone can edit
I have a compiled swf file and a I can't edit it , but
I have an embedded PowerPoint presentation in an Excel workbook. How can I edit
How can I use the standard Edit menu in my Palm OS application, instead
EDIT: I found out that I can get it to compile if I cast
How can I get and set the 'read-only' property of an edit box?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.