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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:56:09+00:00 2026-05-23T02:56:09+00:00

This is more of an implementation question, but are there any shortcomings to using

  • 0

This is more of an implementation question, but are there any shortcomings to using something simple like cron to schedule tasks like mapreduce for MongoDB? Say something needs to be executed every hour, it seems like a suitable way to do this… But I guess I’m just asking because of all the popular job queuing systems out there like Resque and others.

I suppose my question is more like, does cron provide solid and reliable enough solution? Thoughts?

  • 1 1 Answer
  • 2 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-23T02:56:10+00:00Added an answer on May 23, 2026 at 2:56 am

    Cron has been used for decades and is quite reliable and solid; if your cron isn’t reliable then I’d suggest that a stern discussion with your OS vendor is in order. Also, the MongoDB documentation talks about cron jobs (google “site:mongodb.org cron” for examples) so, presumably, cron jobs are to be expected with MongoDB.

    That said, if you already have a bunch of infrastructure set up for another scheduling system then there’s probably no reason to use cron for MongoDB and something else for other tasks.

    In any case, you’ll probably want to layer on a simple PID file locking system if your cron jobs might take long enough to overlap and you only want one running at a time:

    • The cron job looks for a PID file when it starts.
    • If it finds the file, then it reads the old job’s PID out of the file and checks if it is still running.
      • If the old one is running then the new one would complain and exit.
      • If the old one isn’t running, then the new one would continue on.
    • When the new job decides that it is okay to start, it writes its PID to the PID file.
    • When the new job is finished, it deletes the PID file immediately before exiting (or using an atexit handler or whatever similar feature your environment supports).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is more like a knowledge question than actual implementation. I was wondering if
My question is there any way to better manage this database implementation. Background: Web
In relation to this question ( Efficient hashCode() implementation ) I have one more
More specifically, does NDK have a complete STL implementation. We're looking at this for
UPDATE: I've been playing around with this more, and it seems like tmux's clear-history
I am wondering if there is a way to handle this more elegantly. After
Ok, I'm going to try to make this more clear because my last question
I have a label on my asp.net page, it looks like this: more info
This is more of a design question. I have a template class, and I
I've been wondering this for a while now; but especially more so since I've

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.