Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Support scaling processes 0 to n #45

Closed
clee704 opened this issue Nov 16, 2013 · 4 comments
Closed

Support scaling processes 0 to n #45

clee704 opened this issue Nov 16, 2013 · 4 comments

Comments

@clee704
Copy link
Contributor

clee704 commented Nov 16, 2013

#14 made it possible to scale processes from 0 to any quantity, but #29 removed this feature. Currently, we can do this by the following hack (assuming there is no worker process running for myapp):

import heroku
from heroku.models import Process
h = heroku.from_key(...)
app = h.apps['myapp']
Process.new_from_dict({'process': 'worker'}, h, app=app).scale(10)

But it would be best to be supported officially.

@thedrow
Copy link

thedrow commented Apr 23, 2014

How do we solve this? What went wrong with #29?

@ThisGuyCodes
Copy link

Seems like #29 made it only spawn one off processes. Shameless bump for this fix.

@BenLiyanage
Copy link

FWIW this hack totally works for me.

@edmorley
Copy link
Member

This project has been deprecated for some time, and is now being sunset.

We recommend that you use the maintained https://github.com/martyzz1/heroku3.py instead.

@edmorley edmorley closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants