Augusto Estefan · Apr 13, 2020

Start production from Command line


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.



0 793
Discussion (4)2
Log in or sign up to continue

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

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

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()