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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:54:08+00:00 2026-05-30T11:54:08+00:00

I work for an organization that sends sms to users based on subscription, my

  • 0

I work for an organization that sends sms to users based on subscription, my stack has Django, Celery, Redis, RabbitMQ, PostgreSQL, Apache, nginx and Kannel. In this environment every SMS service provider has a certain period of time in which we can send SMS.

Let’s say that i have a celery task that makes a billing request to a carrier webservice, if the billing is successful i have to send an SMS, is there a way to schedule this task to be sent between a certain period, say 8am to 6pm? I know that i can specify an eta and a expiration, however i do not want my tasks to expire because i do have to send the SMS so i will send them the next day

  • 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-30T11:54:09+00:00Added an answer on May 30, 2026 at 11:54 am

    You can put SMSs in a queue and use crontab shceduler to send them in specific times. The example below executes the tasks.send_sms task every 10 minutes between 8 and 6.

    http://ask.github.com/celery/userguide/periodic-tasks.html#crontab-schedules

    from celery.schedules import crontab
    
    CELERYBEAT_SCHEDULE = {
        "every-10-mins-between-8-6": {
            "task": "tasks.send_sms",
            "schedule": crontab(minute="*/10", hour="8,18"),
        }, }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The organization I work for has created a small flash widget that we're encouraging
The organization I currently work for an organization that is moving into the whole
I work in an organization that relies heavily on technology standards. For the most
I currently work in an organization that forces all software development to be done
I have a request for some contract work from an organization that uses Excel
Background I work for a large organization which has thousands of MS Access applications
I work for a large organization that supports many different sites on a nation
I work on a large project in an organization that is (slowly) upgrading our
I work for a fairly large government organization where about 60% of the users
Our organization has decided that my project will be developed for internal use with

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.