简体   繁体   中英

CloudControl: Restart workers on deployment

Is there any way to restart a worker when deploying. If the worker is not running start it while deploying.

The workers are registered in Procfile , but i always have to start them manually with an api request.

You can use cctrlapp APP_NAME deploy --restart-workers , this will stop all running workers and start them again with the new deploy version.

But this doesn't start workers if they don't exist. This is tricky to automate because not all workers in the Procfile are long running workers and you could also have workers which are started multiple times.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM