Skip to main content
10-Marble
Jan 13, 2021 6:44 PM UTC
Solved

Error Scheduler Timeout

Hi All,

 

need your Help I Run Scheduler for 3 services and i got an error Timeout 

(error executing service. Message ::Execution of Script terminated after : 127 seconds. Timeout configured for 120 seconds.)

 

Regards;

PaiChungAnswer
22-Sapphire I
Jan 13, 2021 8:45 PM UTC

In platform-settings.json you can set the script timeout, since you have a long running service, I recommend increasing that number.

I do recommend you are careful not to have services run too long, so that you don't run into situations where the service hasn't finished yet and you invoke it again.

4 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
Jan 13, 2021 8:45 PM UTC

In platform-settings.json you can set the script timeout, since you have a long running service, I recommend increasing that number.

I do recommend you are careful not to have services run too long, so that you don't run into situations where the service hasn't finished yet and you invoke it again.

Translate
10-Marble
Feb 14, 2021 5:14 AM UTC

Hi,

 

could you please clarify from where I can change 

 

Thanks  

Translate
Support
Feb 15, 2021 3:54 PM UTC

Hi @Islam_Amer.

 

Is your question in reference to the timeout setting?  If so, here's an example:

 

    "PlatformSettingsConfig": {
        "BasicSettings": {
            "Storage": "C:\\ThingworxStorage",
            "ScriptTimeout": 500
        },

 

Regards.

 

--Sharon

Translate
Support
Jan 29, 2021 2:35 PM UTC

Hi @Islam_Amer.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others in the community with the same question.

 

Regards.

 

--Sharon

Translate