How to increase the time-out value for the SAS® Job Execution Web Application


The default time-out value for the SAS Job Execution Web Application is 120 seconds.

You can increase the time-out value by specifying the _TIMEOUT job parameter in the URL. This parameter affects the time-out for that specific request only. For example, to specify a value of 240 seconds, use the following specification:

_timeout=240

For more information, see the Job Execution Time-out section in the SAS Job Execution Web Application documentation. 

To increase the time-out value for all jobs, you should modify the executetimeout property for the SAS Job Execution Web Application. For more information, see Setting Configuration Properties in the documentation.

If the job does not need to return output to the client, then you can run the job in the background. Specify the following parameter in the URL to execute a job in the background without waiting for completion:

_action=background

For more information, see Background Processing.

If you execute a job that requires more than 300 seconds to complete, you might receive the following error message:

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST/SASJobExecution/.
Reason: Error reading from remote server.
 
To prevent this error, complete the following steps to increase the time-out value for the Apache httpd server:
  1. Modify the petrichor.conf file, which is located in /etc/httpd/conf.d/.
  2. Change the time-out value (the default value is 300 seconds). The value should not be more than 1800.
  3. Stop and restart the Apache httpd server with the following command:
       > sudo service httpd restart

If a job requires more than 30 minutes to complete, then the authentication token will time out. To work around this problem, execute the job as a scheduled job. See Scheduling a Job in the documentation.