RE: How do we execute a Diyotta dataflow from Command Line Interface?
We have an option to run a dataflow form the command line without logging into studio module of Diyotta. We have to login to the repository through any command line interface in which we would like to execute the dataflow.
We have a command called dicmd which gives the list of commands and syntax which Diyotta supports. For execution we have “execute” command with a syntax as
Execution : dicmd execute [-u userName -w userPassword] -c start|abort|stop|rerun|restartfromfailure -p ProjectName -l LayerName [-d [DataFlowName | DataStreamName] |-s JobFlowName] [-j jobName] [-f ParamName] [-param Parameters] [-i instanceName] [-email] [-mailTo email@example.com] [-cc firstname.lastname@example.org] [-subject subject] [-message message] [-logs]
We must mention the username and password, project name, layer name and dataflow name with -d option.
Example: dicmd execute -u Test -w Testpswd -p Test -l Layer_1 -d dataflow_1
When we run the above command, if dataflow succeeds then Exit code 0 will be shown and when dataflow fails, it gives the error which data flows returns in monitor log.