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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:10:25+00:00 2026-06-01T02:10:25+00:00

I am interested in running a very long running rake task, one that would

  • 0

I am interested in running a very long running rake task, one that would take hours to complete and I am interested in learning about best practices for dealing with this problem.

Possible solutions I have found:

  1. Set up a cron job
  2. delayed_job
  3. resque

cron seems like a simple solution to set up, but is it ideal for a very long task? What do you use and what are the advantages/disadvantages of your solution?

  • 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-06-01T02:10:27+00:00Added an answer on June 1, 2026 at 2:10 am

    Personally I love Resque, you can use the resque-scheduler gem for dealing with long running or periodic tasks.

    If you don’t have to run your task very often, you can demonize the the rake task to make sure it keeps running if your SSH session dies or something.

    Try something like this:

    nohup rake my:task &
    

    nohup will send the output to nohup.out in the directory you run the task in, and will also let leave your ssh session without the process dying, secondly the & will run it as a deamon.

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

Sidebar

Related Questions

I'm very interested in the performance of a Windows application running on Amazon EC2,
I like a lot of what I've read about D. Unified Documentation (That would
I'm running an algorithm at the moment that is very heavy but extremely parallel.
I am interested in learning python but my Linux skills suck. I would like
I'm using Python and PyGTK. I'm interested in running a certain function, which gets
I'm interested in learning some (ideally) database agnostic ways of selecting the n th
Although I'm specifically interested in web application information, I would also be somewhat curious
I would like to write an html/javascript/sql app for personal use only running locally
I have basic idea about running PHP in different configurations like mod_php, cgi, FastCGI,
Having the one push build to take your changes from development environment to live

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.