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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:48:51+00:00 2026-05-24T09:48:51+00:00

I am trying to write a very simple rails backend backed up with a

  • 0

I am trying to write a very simple rails backend backed up with a mysql database. It’s very simple, I have two tables, one is the users table, tweets table, and a time for each tweet. Basically besides just an API, I would like to write a scheduler for posting the tweets at a specific time in the database. This is what confuses me.. how do I write a loop in the background that always checks the current time if there’s any tweet that needs to be posted?

Any recommendation/guidelines in achieving this would be helpful.

  • 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-24T09:48:52+00:00Added an answer on May 24, 2026 at 9:48 am

    You need a background job management.

    Periodically, you will check if there is anything to do and eventually do it.

    Please check this relevant SO question.

    Here are some other pointers:

    • http://4loc.wordpress.com/2010/03/10/background-jobs-in-ruby-on-rails/
    • https://github.com/tobi/delayed_job
    • https://github.com/javan/whenever/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm trying to write a very simple wysiwyg editor, where users can simply add
I'm trying to write a very simple app that will do just one very
This is a very simple game I'm trying to write but I have a
I am trying to write a very simple RSS channel which would display the
I'm trying to write a very simple image processing program for fun and practice.
I'm trying to write a very simple program, I want to print out the
For fun I'm trying to write a very simple server in C. When I
I'm trying to write a very simple cms (for learning purposes) in kohana 3
I'm trying to write a very simple number guessing game (code is below). After
I'm trying to write a very simple regular expression that matches any file name

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.