why call one action, need wait 40s, don't have any sleep
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
I have replied below, looking forward to your answer
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.
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?
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
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!
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.
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?
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
don't have any function, only export currentTime
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