cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Thingworx service /script timeout settings

Siddharth_Jhs
14-Alexandrite

Thingworx service /script timeout settings

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

 

 

ACCEPTED SOLUTION

Accepted Solutions

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).

View solution in original post

2 REPLIES 2

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).

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

Announcements


Top Tags