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

Alteryx Promote Knowledge Base

Definitive answers from Promote experts.

Increasing the Prediction Timeout for a Model

Sr. Data Science Content Engineer
Sr. Data Science Content Engineer
Created on

If you have a model that takes longer than 10 seconds to return results, by default Promote will time out your model API query. If you need Promote to wait longer than 10 seconds before timing out, you can adjust this time out setting with an environment variable called PREDICTION_TIMEOUT. A model will wait a maximum of 60 seconds before timing out. 

 

Adding an environment variable to a model is easy! First, open the model for which you would like to modify the timeout variable by clicking the model's name.

 

openmodel.png

 

 

After opening the dashboard, navigate to the Advanced tab, and find the row for environment variables. Click on the small plus sign in this row to add an environment variable.

 

addEnvVariable.png

In the modal window that pops up, add PREDICTION_TIMEOUT as the variable Name. Add the length of time Promote should wait before timing out a prediction (in seconds) as the Value, then click Save. Although the Environment Variable will accept any number you provide as a Value, the maximum time a model will wait before timing out is 60 seconds.

 

2018-10-05_8-32-58.png

 

You should see your new environment variable populated in the Environment Variables row of the Advanced tab for your model. 

 

 

 2018-10-02_13-47-32.png

 

If you need to revert this setting to the default or modify the value, you will first need to delete the environment variable you created (you can not edit an environment variable once it has been saved). To delete an environment variable, click on the little cog icon next to the variable in the dashboard view, and select delete.

 

 2018-10-05_8-55-36.png

 

 

Once the variable is deleted, you can create another PREDICTION_TIMEOUT variable with a new value.

 

Other Environment Variables

 

There is currently one other built-in environment variable, specifically for R Promote models, that allows you to toggle between JSON packages. To read more about it, please see this Community Knowledge Base article.