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

  • Home
  • SEARCH
  • 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 766271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T17:01:15+00:00 2026-05-14T17:01:15+00:00

I’m planning on running a ruby process that may take a month to finish.

  • 0

I’m planning on running a ruby process that may take a month to finish. If possible, I’d like to ensure that a blackout or hitting the wrong button won’t cost me the whole month’s work.

Is there an easy way to periodically save the program’s state to disk? (Techniques that involve more effort would include adding code that marshals everything apart from the database, or possibly using a virtual machine for the process’ operating system)

(For those interested: the process involves parsing a multi-gigabyte XML file of a well-known website, processing some information, and saving the information to an ActiveRecord database as it goes along. Twice.)

Edit: The project is this one, and the XML file is pages-articles.xml (eg enwiki-20090306-pages-articles.xml). Nothing proprietary, I just didn’t want to be in “Plz halp” mode. The first pass gets a list of Wikipedia page titles, the next pass determines the first link from each page to another page, and then I calculate some statistics.

Continuing from where I left off, as suggested by some answerers, is probably a valid option. If it crashes during the first pass, then I probably could re-run it, telling it not to add entries that already exist. If it crashes during the second pass, then I should only ask it to build links for pages that haven’t already had their link calculated. If it crashes during calculating the statistics, I could just re-calculate the statistics.

Another edit: More general version of this question asked at Save a process’ memory for later use?. It looks like you can’t easily back up long-running processes.

  • 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-14T17:01:16+00:00Added an answer on May 14, 2026 at 5:01 pm

    A more general version of this question is asked at Save a process’ memory for later use?. It looks like you can’t easily back up long-running processes.

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

Sidebar

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.