Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
FranciscoQ
Partner - Creator
Partner - Creator

Reload Task Button Variable, Reload Time

Hi,

I am developing an App, where is already installed the extension of reload task button.

So every time the user press the button, it start a specific task chain that I developed in QMC. 

The thing is there are going to be 2 buttons. One that will reload the app with the full task chain, and another button that will reload the app just for a part of the task chain.

 

I would like two text objects, that shows the last time of reload for each of the buttons.

I though about using variables, that take a value if the reload button is pressed, and then with another function provide the last time the variable took the value, I am not very sure how to do that, but is a logic I though..

 

I would appreciate if someone can help me to do that, or maybe if there is another way to do it.

 

Thanks!

 

 

3 Replies
mato32188
Specialist
Specialist

Hi @FranciscoQ,

I had the similar case in our company. We wanted to measure the reload time of specific app with and without another task in chain and see how the additional task influenced the whole reload process. What I did?

I created two chains. One full (Task1, Task2, Task3) and one partial(Task4, Task5). Task1 is actually exactly the same as Task4, but with different taskId as well as Task3 is the same as Task5. First button triggers chain Task1-Task2-Task3 and second button triggers chain Task4-Task5. As soon as you have started reloads, you can load the data from PostgreSQL db and see the execution time for particular chains.

LIB CONNECT TO 'QLogs';

LOAD entry_timestamp,
process_host,
id,
process_name,
logger,
entry_level,
status,
execution_id,
task_id,
task_name,
duration,
app_id,
app_name,
start_time,
stop_time,
executing_node_name;

[view_task_execution_scheduler]:
SELECT "entry_timestamp",
"process_host",
"id",
"process_name",
"logger",
"entry_level",
"status",
"execution_id",
"task_id",
"task_name",
"duration",
"app_id",
"app_name",
"start_time",
"stop_time",
"executing_node_name"
FROM "public"."view_task_execution_scheduler";

This is how we did it. Hope it can help you a bit.

BR

m

ECG line chart is the most important visualization in your life.
FranciscoQ
Partner - Creator
Partner - Creator
Author

Hi !

 

Interesting,

 

But want I want to achieve is actually different. I want a text object that shows below each of the buttons, the exact date and time each of the buttons were executed.

Because one button is to reload the whole App, and the other button is just for user files.

I don't know if that is possible.

 

Thanks anyway!

 

mato32188
Specialist
Specialist

Hi,

is it possible to share button extension? I can check the logic and hopefully create the timestamp you want to see.

BR

m

ECG line chart is the most important visualization in your life.