-
- Posts: 105
- Joined: Fri Jan 06, 2017 12:50 pm
Script is too long executed and Awasu can't get result from it
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?
- support
- Site Admin
- Posts: 3067
- Joined: Fri Feb 07, 2003 12:48 pm
- Location: Melbourne, Australia
- Contact:
Re: Script is too long executed and Awasu can't get result from it
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.awasu.user wrote:What do when scripts need time to execution before send data to Awasu?
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
-
- Posts: 105
- Joined: Fri Jan 06, 2017 12:50 pm
Re: Script is too long executed and Awasu can't get result from it
Questions:awasu.user wrote:support wrote:DefaultValue=300
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?
- support
- Site Admin
- Posts: 3067
- Joined: Fri Feb 07, 2003 12:48 pm
- Location: Melbourne, Australia
- Contact:
Re: Script is too long executed and Awasu can't get result from it
Seconds.awasu.user wrote:1. Value is in ms or seconds?
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.awasu.user wrote:2. When Awasy get result will it be wait for this amount of time or go ahead with doing something else?