marcusspitzmiller / QlikSenseTask

Active - QlikSenseTask is a tool for starting Qlik Sense tasks from the command line.
24 stars 13 forks source link

Unable to get 2.x to work #1

Closed mrackers closed 8 years ago

mrackers commented 8 years ago

I have not been able to get 2.x to work on our 2.1.1 installation of Qlik Sense. It states that -task and -wait are undefined. I am able to get the 1.x and 1.1 versions to work, but the completion codes are not correct. I also noticed that the help portion of 2.x is not displaying correctly.

image

marcusspitzmiller commented 8 years ago

It should be -wait:600, not -wait=600. Check this and let me know what is not working after that, please.

mrackers commented 8 years ago

Sorry; I mistyped when I did the first screen capture; I re-ran it today with -wait:600 instead of -wait=600, but no change. The 2.x does not recognize -wait:600 or -task. Again the help file on 2.x does not work. I provided the exact command on 1.1 that works. image

henrikmatz commented 8 years ago

It think I have a similar issue.

It may help, if you could make a detailed example on how to fill out the parameters. Let's say Qlik Sense server is called "QlikServer" and task to run is called "TaskNameToRun"

We have tested: QlikSenseTask.exe -proxy:http://QlikServer -task:TaskNameToRun QlikSenseTask.exe -proxy:https://QlikServer -task:TaskNameToRun

But get error "Proxy or Task undefined"

marcusspitzmiller commented 8 years ago

Hi, so here is what I am doing and it is working fine. I am not sure what is going on here, but it is possible that I uploaded a bad build. I've gone ahead and cleaned a few things up and uploaded my changes. Please give this a try and note the syntax of my example, which i've now included in the -? and Readme on this page. Let me know how it goes. Thanks!

image

henrikmatz commented 8 years ago

Thanks Marcus!

It works now, so guess it was a bug in previous release. This is an awesome extension.

Henrik

marcusspitzmiller commented 8 years ago

Great!

marcusspitzmiller commented 8 years ago

@mrackers, can you please check if it is working for you?

mrackers commented 8 years ago

Just checked it and looks good. Quick question: I have a job that runs in 1.5 min, but the return code didn't show up until almost 3 minutes. Is there a way of increasing the polling for status?

marcusspitzmiller commented 8 years ago

I uploaded a new version that includes a -poll parameter. Default is 30 (seconds), You should be able to set that to something like 15 or 10 to check more often.