Skip to main content Skip to complementary content

Running tasks using the CLI

You can also run tasks using the CLI. This is especially useful if you wish to run Compose tasks from external schedulers such as HP OpenView or Control-M. Before you can run a task, you must first run the Connect command as described in Connecting to Qlik Compose server.

Information note

As Compose CLI requires Administrator permission, make sure to select "Run as administrator" when opening the command prompt.

The run_task command populates the Storage Zone with data. The task can also be run using the Run toolbar button located in Monitor view as well as in the Manage Task window.

When this command succeeds, it returns 0.

Command syntax

ComposeCli.exe run_task --project project_name --type storage|workflow --task task_name --wait timeout_in_sec

Parameters

Parameter Description
--project The name of the project.
--type

The type of task that you want to run you want to run.

  • storage - data storage task.

  • workflow - workflow task.

--task

The name of the task that you want to run.

--wait

The wait time specified in seconds.

The command line can run in sync or async mode. A value of 0 (seconds) indicates sync mode. This means that as soon as the task finishes, the command line returns to prompt. The default mode is async, with a value of -1. This is also applied if you leave this parameter empty. Other negative values are not permitted.

Note that if wait is excluded from the command, the task may appear to complete successfully even if it encountered an error.

Example

ComposeCli.exe run_task --project MyProject --type workflow --task DL1 --wait 1

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!