user1013369
user1013369

Reputation: 239

Kill worker process in Heroku

How do you kill all heroku workers?

I have tried:

heroku scale worker=0

and it doesn't work.

Upvotes: 5

Views: 7196

Answers (6)

Amal Sunil
Amal Sunil

Reputation: 133

The one that worker for me is heroku scale worker=0

Upvotes: 2

Tom Hammond
Tom Hammond

Reputation: 6080

New way on Cedar apps is heroku scale worker=0

Upvotes: 2

Koen.
Koen.

Reputation: 26949

The current way of scaling dynos is:

heroku ps:scale worker=0

Upvotes: 0

samvermette
samvermette

Reputation: 40437

The easiest way:

heroku workers 0

Upvotes: 0

John Beynon
John Beynon

Reputation: 37507

It depends on the stack.

The slider interface exposed via the website doesn't let you control Cedar stack applications, one of the following should do the trick though:

heroku ps:stop worker

or

heroku ps:workers 0

Upvotes: 10

jefflunt
jefflunt

Reputation: 33954

Have you tried logging into the web interface and manually changing the number of workers to zero via the up/down slider?

That is, log into heroku, go to your app's Resources page, and drag the "Worker Dynos" slider to zero, then save the changes via the "Save and Apply" button on the top-right.

enter image description here

Upvotes: 2

Related Questions