hubcli job runpkg¶
Invokes a program from a Hub package that has been authored in Altair Analytics Workbench and uploaded into Altair SLC Hub.
The command has the following format:
hubcli job runpkg [flags]
where:
- flags
- One or more flags for the command that provide additional control over execution.
The following flags are mandatory:
-G groupor--group group- The name of the program package group.
-N packageor--name package- The program package name.
-P stringor--program string- Path of program within the package.
-R stringor--repository string- Program package repository name.
The following flags are optional:
--allowExitCodes string- Treats jobs that return non-zero exit codes as successful. A non-zero code can be specified to string.
You can specify more than one exit code, separated by commas.
For example, you could specify--allowExitCodes 1,2,3,5-10. --allowWarnings- Treats SLC jobs that return warnings as successful.
-c stringor--connection string- Specifies the name of the connection to use.
If you do not specify this option, then the default connection is used.
If there is no default connection, then you must specify a connection.
The first connection created for the Altair SLC Hub instance is set by default as the default Hub instance,
but a different default connection can be set using the
hubcli connection usecommand. -dor--download- Downloads job results when the job has finished to either the default directory,
or the directory specified by the
-ooption.
The default directory is./connection_name_jobid, where connection_name is the name of the connection used for the job and job_id is the job identifier for the job.
This flag must be specified with the--waitflag. --debug- Enables debug logging.
-e name=valueor--env name=value- Sets the environment variable name to the specified value to the job. The default is [].
-p stringor--execution-profile string- Specifies the name of the execution profile to use for the job.
If an execution profile is not specified, the default profile is used.
A default profile can be specified using the
hubcli exprof usecommand. -hor--help- Returns help information for this command.
--jobName jobname- A name to assign to the job.
If this flag is not specified, a default job name is created in the form:
< group >:< name >:< version >:< program >For example: mygroup:mypackage:1.2.3:examples/example1. -n stringor--namespace string- Specifies the name of the namespace to use. If you do not specify this option, then the default namespace is used,
if a default is available. A default namespace for the current connection is created using the
hubcli namespace usecommand. -o diror--outputDir dir- Specifies the directory into which the results of the job are downloaded.
By default the directory is
./connectionname_jobid. fordownload, ./ fordownloadZip. --passwordFile string- Specifies the path to a file containing an operating system password.
--promptOSPass- Specifies that an operating system password is required to run the job.
-r listor--result list- Specifies a comma-separated list of result artifacts to download. Each artifact has the format 'result-name=worker-path', where result-name is the name of a result, and worker-path is the worker path used to run the job.
--rm- Removes the job after it has completed.
This flag must be specified with the--waitflag. -V stringor--version string- Specifies the program package version to use. By default, the latest version is used.
-wor--wait- Waits until the job has completed before returning
-t durationor--waitTimeout duration- Specifies the amount of time duration to wait for the job to finish.
The duration can be specified in common units such as
s(seconds),m(minutes), andh(hours); for example,30s,5m,2h. The default is to wait forever. -zor--downloadZip- Downloads job results as a zip file when the job has finished to either the default directory or the directory specified by the
-ooption.
The default directory is./(the current working directory).
This flag must be specified with the--waitflag.