How to set timeout for action

fudge

Client
Регистрация
23.04.2022
Сообщения
14
Благодарностей
1
Баллы
3
Hi,

Is there a way to set a timeout per action? Like when trying to get sms code, can there be a timeout to stop so the status can be updated in time?

Thank you.
 

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
526
Благодарностей
112
Баллы
43
You need to create a control, something like this:

97453


Код:
int i = 0;
try{
    i = project.Context["i"];
}
catch{
    project.Context["i"] = i;
}

if (i < 20){
    System.Threading.Thread.Sleep(2000);
}
else{
   throw new Exception();
}

i += 1;
project.Context["i"] = i;
That code will try check element 20 times and if there is no sucess, it will move to timeout block.
 

Вложения

  • Спасибо
Реакции: buypvablog и morpheus93

cherubin

Client
Регистрация
06.06.2016
Сообщения
92
Благодарностей
6
Баллы
8
Hello,

I'm not sure to understand the logic here, it seems to be in an infinite loop.
If the action is Ok, it come back to the action again and again, and if not it goes to timeout.
 

pvaloblog

Новичок
Регистрация
03.11.2022
Сообщения
1
Благодарностей
0
Баллы
1
There are many important things to do in design, buy gmail accounts cheap branding, and communication. Knowing how to prioritize your work can make your life much easier. Here are some tips to help you prioritise your tasks and avoid overcommitting. Hopefully, these ideas will be useful for you! Read on for more. Here are some benefits of having money in your life. The first benefit is that it can increase your earning potential. The second benefit is that it can be used to improve your quality of living. buy and sell twitter accounts
 

PHaRTnONu

Client
Регистрация
01.10.2016
Сообщения
340
Благодарностей
48
Баллы
28
Hi,

Is there a way to set a timeout per action? Like when trying to get sms code, can there be a timeout to stop so the status can be updated in time?

Thank you.

EtaLasquera
reply is extremely good for a lot of case's but i don't think that was the question you were asking

For a 'GENERAL' time out for some action blocks you need to go into the "action properties"
(double click or in the action properties windows there are sometimes a tab thats says "MORE")

99298


in all other cases the C# code is your solution
 
  • Спасибо
Реакции: EtaLasquera

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
526
Благодарностей
112
Баллы
43
EtaLasquera
reply is extremely good for a lot of case's but i don't think that was the question you were asking

For a 'GENERAL' time out for some action blocks you need to go into the "action properties"
(double click or in the action properties windows there are sometimes a tab thats says "MORE")

Посмотреть вложение 99298

in all other cases the C# code is your solution
Great! I've never seen this ^^ its very usefull!
 
  • Спасибо
Реакции: PHaRTnONu

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)