Skip to main content
14-Alexandrite
March 17, 2023
Solved

Thingworx service /script timeout settings

  • March 17, 2023
  • 2 replies
  • 3200 views

Hello Team,

Some of my sql services takes much time to load and it gives following error 

Error : "Execution of Script terminated after : 89 seconds. Timeout configured for 60 seconds."

For this I need to increase service execution time for this 2 approaches I know :

1) Sql Service ---> Service Info ---> Time out Interval (sec)

2) Platform-settings.json ---> define script Time-out

q1) In my case we have not defined any script time-out in platform-settings.json file. What is the default timeout interval taken in this case ?

q2) From Thingworx composer, how can we view service/script time-out details ? 

 

Regards,

Sid

 

 

Best answer by nmutter

From https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Installation/Installation/platform_settings_json_configuration_details.html default value is 30 seconds. Not sure if this is accurate when your error shows its 60 seconds and you did not change it in platform-settings.json.

I only know the possibility to change the timeout in the platform-settings.json file (referenced in link above).

2 replies

nmutter16-PearlAnswer
16-Pearl
March 17, 2023

From https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Installation/Installation/platform_settings_json_configuration_details.html default value is 30 seconds. Not sure if this is accurate when your error shows its 60 seconds and you did not change it in platform-settings.json.

I only know the possibility to change the timeout in the platform-settings.json file (referenced in link above).

18-Opal
March 20, 2023

Hello Sid,

 

q1) Default is 30 seconds.

q2) There's no simple way to do it. The easiest is to run this service and see the error message in the log -- it will contain the timeout, like in your example:

let result = 0;
while(true) {
 result += Math.random();
}

 

Note that it's important to do some work in this loop, like Math.random().

 

/ Constantine