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 6728281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:09:05+00:00 2026-05-26T10:09:05+00:00

I implemented a delayed job in my Rails application, following the instructions . I

  • 0

I implemented a delayed job in my Rails application, following the instructions.

  1. I start the Rails app
  2. I click on a link that launches the delayed job
  3. The job is visible in the database’s delayed_jobs table
  4. I run rake jobs:work
  5. The job disappears from the table, so I guess the job has been performed
  6. BUT PROBLEM: /tmp/job.log has not been written (what the job should have done)

The job:

class CsvImportJob
  def perform
    File.open('/tmp/job.log', 'w') {|f| f.write("Hello") }
  end
end

The call:

job = CsvImportJob.new
job.delay.perform

Nothing in the logs.
The rake jobs:work terminal says nothing after its start message:

[Worker(host:nico pid:25453)] Starting job worker

Nothing happen either when I launch the job while rake jobs:work is running.

In contrast, when the line "hello".delay.length is executed, delayed_jobs processes it and a message String#length completed after 0.0556 - 1 jobs processed at 3.6912 j/s, 0 failed does appear.

  • 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-26T10:09:06+00:00Added an answer on May 26, 2026 at 10:09 am

    See https://github.com/collectiveidea/delayed_job/wiki/Common-problems#wiki-undefined_method_xxx_for_class in documentation.

    Even delayed_job author don’t know the reason. It somehow depends on the webserver you run in on. Try the wiki’s recommendation.

    See also delayed_job: NoMethodError

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

Sidebar

Related Questions

We implemented In-app Billing one year ago with no problems following the sample code
I have a fairly simple Rails application that allows users to manage their clients
I implemented the Facebook registration on my website. Everything works fine except that suddenly
I implemented Adwhirl into my new universal app. And was able to get the
I implemented class that serves as TcpCLient server. Looks like this: { [Export] public
I'm trying to modify a serial program that reads from a database, and writes
I implemented the following code, which does what it's supposed to, but I think
Have implemented an edit functionality in struts2. After i click submit button, the bean
I implemented a FullCalendar in a Twitter Bootstrap Tab in a JS application written
I'm using delayed job for some carrierwave tasks which can take some time. At

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.