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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

What are the configuration steps needed to run services for continuous 1 hour.

AP_10343008
15-Moonstone

What are the configuration steps needed to run services for continuous 1 hour.

I have to automate the services from scheduler to generate 10 reports every week based on the hardcoded 10 inputs in service. Each report generates after fetching data from windchill and it service executes upto 5 minutes to generate one report. In this case the server should be available for 1 hour in backend for the generation of all reports. 

 

What are the configuration steps needed to run services for continuous 1 hour.

ACCEPTED SOLUTION

Accepted Solutions

Depends on how you interact with the result.

To test if that is a feasible approach at all, you can do a test by running 10 REST requests against ThingWorx, e.g. with Postman.

If it proves to be a valid approach that does not cause resource congestion, you could try multiple subscriptions.

You could also make the services asynchronous and pick up the result later from a repository.

View solution in original post

6 REPLIES 6

Not sure what you mean by "server should be available", the server is running permanently and therefore available.

If you have long-running services, you need to set the Scripttimeout parameter in configuration, in your case to 3600. It's documented here:

https://support.ptc.com/help/thingworx/platform/r9/en/#page/ThingWorx/Help/Installation/Installation/platform_settings_json_configuration_details.html

 

Since 3600 is quite high, you could consider running the services in parallel rather than sequential. But it depends on the use case and the load if this is feasible.

 

AP_10343008
15-Moonstone
(To:Rocko)

How can we trigger the services parallelly from backend?

Depends on how you interact with the result.

To test if that is a feasible approach at all, you can do a test by running 10 REST requests against ThingWorx, e.g. with Postman.

If it proves to be a valid approach that does not cause resource congestion, you could try multiple subscriptions.

You could also make the services asynchronous and pick up the result later from a repository.

AP_10343008
15-Moonstone
(To:Rocko)

Thanks. Is there any document or videos about the steps to call thingworx services

from postman.

Hi @AP_10343008 ,

Finding the answer to this question is typically easy, and I always suggest using first our knowledge base searching engine, available at https://support.ptc.com

Searching for "how to call thingworx rest from postman" results in the first result being this article.

Announcements


Top Tags