42
Views
13
Comments
why call one action, need wait 40s, don't have any sleep
Application Type
Traditional Web, Mobile, Reactive, Service

why call one action, need wait 40s, don't have any sleep

2020-05-07 18-53-00
Rui Barradas
 
MVP

Hello Su,

Hope you’re doing well.

Can you please provide extra details about your question?

It is very hard to understand just by this description.


Kind regards,

Rui Barradas

UserImage.jpg
Su Bin

I have replied below, looking forward to your answer

2016-04-22 00-29-45
Nuno Reis
 
MVP

Hello.

While waiting for the clarification:

If the action is taking that time, it can either be to generate data or consuming a web service.

If you want it to wait that time, you need a Sleep action (you have it in Forge). If you want it to wait at least that time, you can go with a Timer.

UserImage.jpg
Su Bin

I have replied below, looking forward to your answer

2025-05-02 20-28-47
Drishti Menghani

Hi @Su Bin ,

Can you please provide more details on this, wheatear it's related to SQL query or any sort of logic implemented in it?

UserImage.jpg
Su Bin

I have replied below, looking forward to your answer

UserImage.jpg
Su Bin

I write a read excel function, then I wrote some logs record the running time, Then the logMessage6 run at 19:59:26, the GetTD_Rate_CNY action run at 20:00:06, this action does not have any sleep or sql.

the GetTD_Rate_CNY action Like below: the Log action run at 20:00:06 


2019-09-24 18-41-25
Jorge Martins
 
MVP

Hi @Su Bin ,

First of all, is that consistent? or was it a temporary slowness?...

If it is consistent, then it's probably something in your code. What are you doing inside that first Assign on the GetTD_Rate_CNY action? seems like that's where the time is being spent, according to your logs.

Cheers!

UserImage.jpg
Su Bin

It only happens on the first run after  deployment.

To be precise, it took 40 seconds to output the current time twice.

And only this action has this problem

so strange.

2019-09-24 18-41-25
Jorge Martins
 
MVP


You didn't really answer my question regarding what's in the Assign node before both LogMessage6, that could be what is causing the delay...

...but if it's only slow on the first run after deployment, it could be because IIS is loading the module resources.

Can you show us the logs for the first run after a deployment and for the second run, for instance?

That being said, your logs are not very clear as which entry corresponds to which LogMessage, can you make sure that the message logged for LogMessage6 before the GetTD_Rate_CNY action is called is different from the message logged for LogMessage6 inside the GetTD_Rate_CNY action? and that LogMessage9 also logs a different message (for instance, start with some text that is different for each one of them)? And then let us see what the new logs show for both first and second runs?


2024-12-18 16-06-42
Junaid Syed

Hello Su,

In GetTD_Rate_CNY action what are the values logged by logMessage6 and logMessage9? Are you calling any function in those assignment elements? These checks might help you to narrow down to the exact problem.

Thanks,

Junaid

UserImage.jpg
Su Bin

don't have any function, only export currentTime

UserImage.jpg
Su Bin

The names of both log outputs are called logMessage6.

The third picture is the GetTD_Rate_CNY action  code.

As soon as  entered this GetTD_Rate_CNY  action, the log was printed

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.