Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enqueue_at not working #647

Open
seb-sykio opened this issue Jun 30, 2018 · 4 comments
Open

enqueue_at not working #647

seb-sykio opened this issue Jun 30, 2018 · 4 comments

Comments

@seb-sykio
Copy link

hi,
when I use
Resque.enqueue_at(10.seconds.from_now, SendMailJob, :my_id => id)
my job is correctly added to delayed job, then it is added to default queue, then I can see in resque-web that it has been counted as a success but I dont receive any mail
If I do
SendMailJob.perform_later(:my_id => id)

then I receive a mail.

my job:

class SendMailJob < ActiveJob::Base
  queue_as :default
  
  def self.queue
    :default
  end

  def perform(params)
    user = User.find(params[:id])
    ...
  end
end

Im also using gem active_scheduler
what am I doing wrong ?

@ruckus
Copy link

ruckus commented Dec 19, 2018

What ActionMailer delivery method are you calling in your job? Are you using deliver_now?

@seb-sykio
Copy link
Author

yes I use deliver_now, but anyway, with log I can clearly see that "perform" method is not called at all

@amorimlucas
Copy link

I'm seeing this same behavior. Haven't found a solution yet.

@amorimlucas
Copy link

Running rake environment resque:scheduler instead of rake resque:scheduler resolved this for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants