Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Set up external tasks on QlikSense

hi all,

Is there anyway to create external tasks on Sense similar to QV?

Thanks,

Alec

10 Replies
Vincenzo_Esposito

alec1982
Specialist II
Specialist II
Author

hi Vincenzo,

thanks for the information.. not sure if that gives me an idea on how to set it.

the way I look at it is I have a batch file and need to run that file from QlikSense then load an app once the external task complete running the batch file..

Vincenzo_Esposito

If you need to fire the API REST call from a batch file you want to find out a way to make a GET HTTP call. You have a variety of options. The first on the top of my head is using curl (it's part of a standard UNIX distribution, but you have to install it on a Windows os). A Python script is another option.

What exactly do you mean with "run a batch from Qlik Sense"? During the script load or on-demand from the Qlik Sense app?

alec1982
Specialist II
Specialist II
Author

no. I am looking to replicate the option available on QlikView QMC where you can create supporting tasks.

the supporting task can be a batch file to do something on a server such as moving file from one place to another or it could be a Power Shell script to download some files from web.. etc.

in QlikView QMC there is an option to create external task and trigger this external batch file to run on a set schedule then have a dashboard task dependent on it.

Vincenzo_Esposito

As far as I understood you need to create a mixed chain tasks which include general purpose as well as data reload tasks. Qlik Sense schedule service (QSS) can create and trigger two type of tasks (reload data and sync users). An option to have a mixed tasks chain is to use an external scheduler (eg. Windows default AT) to trigger any kind of task you need, including Qlik Sense data reload tasks

brindlogcool
Creator III
Creator III

Did you got any solution for the external task? I am looking for the similar solution.

Vincenzo_Esposito

The solution is not to handle an external task in Qlik Sense Scheduler, but on the contrary handle Qlik Sense Task (and of course all other tasks) on an external scheduler.

You can reload a task calling this API (http://help.qlik.com/en-US/sense-developer/3.2/Subsystems/RepositoryServiceAPI/Content/RepositorySer...)

Or you can trigger a task calling this API (Task: Start asynchronous ‒ Qlik Sense)

brindlogcool
Creator III
Creator III

But it is duplicating the existing functionality. Let say I want to trigger the external task for 5 different applications I don't want to trigger the tasks from API for all the 5 applications.

Vincenzo_Esposito

Let's say, you have a simple task (just an app to reload) or a more complex one (a number of apps chained all togheder in a dense network of dependencies). You define your task in the Qlik Sense scheduler, using the Qlik functionality. You just don't need to set starting time, because you'll "trigger" the start of the chain with a simple API call (in your case the syncronus version) and let's some other schedulr (eg. on borded AT) do it for you. After the execution AT can start some other tasks.

I can't see the duplication of functionality.