awasu.user
Posts: 81
Joined: Fri Jan 06, 2017 12:50 pm

Postby awasu.user » Thu Aug 03, 2017 5:15 am

Before generating channel for Awasu I have to make calculation. It's takes few minutes. I have correct result, but execution time is too long for Awasu and I get error. How change that? What do when scripts need time to execution before send data to Awasu?

User avatar
support
Site Admin
Posts: 3021
Joined: Fri Feb 07, 2003 12:48 pm
Location: Melbourne, Australia
Contact:

Postby support » Thu Aug 03, 2017 5:39 am

awasu.user wrote:What do when scripts need time to execution before send data to Awasu?

If your plugin defines a parameter called "Script timeout", Awasu will use that as the default amount of time to allow the script to run.

If your script is called foo.py, create a file called foo.plugin in the same directory that looks like this:

Code: Select all

[ChannelParameterDefinition-1]
Name=Script timeout
Type=int
DefaultValue=300

Restart Awasu, open the channel's Properties dialog and you will the new parameter that you can configure (or you can just leave it at the default value you configured in the .PLUGIN file).

awasu.user
Posts: 81
Joined: Fri Jan 06, 2017 12:50 pm

Postby awasu.user » Sat Aug 05, 2017 6:48 am

awasu.user wrote:
support wrote:DefaultValue=300


Questions:
1. Value is in ms or seconds?
2. When Awasy get result will it be wait for this amount of time or go ahead with doing something else?

User avatar
support
Site Admin
Posts: 3021
Joined: Fri Feb 07, 2003 12:48 pm
Location: Melbourne, Australia
Contact:

Postby support » Sun Aug 06, 2017 12:16 am

awasu.user wrote:1. Value is in ms or seconds?

Seconds.

awasu.user wrote:2. When Awasy get result will it be wait for this amount of time or go ahead with doing something else?

The Pro Edition can have up to 90 channel updates in progress at once. However, if you have more than a few of these long-running plugins, they will eventually slow the update process down.


Return to “Awasu - Extensions”

Who is online

Users browsing this forum: No registered users and 1 guest