Question
Augusto Estefan · Apr 13, 2020

Start production from Command line

Hi,

There is a way to start and stop production from command line ?

I know you can configure auto-start on the web interface but I need to start specific production on a shell script.

 

Thanks!

10
4 0 4 307
Log in or sign up to continue

Replies

StopProduction()
 Stop the currently running production in an Ensemble namespace:
   Do ##class(Ens.Director).StopProduction()

StartProduction()
   Start the specified production in the Ensemble namespace, as long as no other production is running:
   Do ##class(Ens.Director).StartProduction("myProduction")

 RecoverProduction()
Clean up a Troubled instance of a running production so that you can run a new instance in the Ensemble namespace:
  Do ##class(Ens.Director).RecoverProduction()

Thanks a lot for the informations, its works for me.

How do you get all the informations about this classes? there is any link to get this info ?

To start a production:

do ##class(Ens.Director).StartProduction("myProduction")

To stop a production:

do ##class(Ens.Director).StopProduction()