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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:36:00+00:00 2026-06-01T20:36:00+00:00

I am using Django in Heroku, and in my site I send batch emails

  • 0

I am using Django in Heroku, and in my site I send batch emails every month through Celery. Since I only use this worker once a month, I don’t want to pay for it all the time. I can stop the worker using a heroku scale workers=0 and scale it back up with heroku scale workers=1 manually before and after I send my emails.

However since other non-techinical staff will sending email from django as well, they can not run these commands. Can I stop a worker by executing a command from Python in my Heroku web process? I could execute any commands before sending email.

  • 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-01T20:36:01+00:00Added an answer on June 1, 2026 at 8:36 pm

    There is a bug with heroku.py see issues: https://github.com/heroku/heroku.py/issues/10 and https://github.com/heroku/heroku.py/issues/4

    I made a quick work around, which uses the http resource directly:

    cloud = heroku.from_key(settings.HEROKU_APIKEY)    
    cloud._http_resource(method='POST', 
       resource=('apps', 'appnane', 'ps', 'scale'), 
       data={'type': 'processname', 'qty': 1})
    
    cloud._http_resource(method='POST', resource=('apps', 'appname', 'ps', 'scale'), data={'type': 'processname', 'qty': 0})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using heroku to develop a Django app and they use git to push
I am trying to use gunicorn with my django app on heroku. I followed
Using Django 1.1.1 In models.py: class Site(models.Model): name = models.CharField(max_length=50) class SiteMonth(models.Model): site =
When using django with apache which is the best server config? Should I use
I am using Django with Postgres and Heroku. and I have a post table
I'm using the Heroku cedar stack to run my Django application, and I'd like
Using django 1.4 and have seen that when you use startproject it now creates
I am deploying a Django app on Heroku, and using the Sendgrid addon to
I'm using Heroku with Django and using Piston for API stuff. We migrated from
I am using the tutorial to deploy Django. [http://devcenter.heroku.com/articles/django] After I do a git

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.