Changing max run time of a javascript in DSeries

book

Article ID: 5701

calendar_today

Updated On:

Products

DSERIES- SERVER CA Workload Automation DE - System Agent (dSeries)

Issue/Introduction

Customer gets an error when executing event trigger-time JavaScript script.

Error: A javascript was not able to complete execution in 300 seconds. Script execution has been cancelled.

Cause

This is caused by the javascript in the application takes more time than the default setting of 300 seconds to complete execution.

This delay in execution could be attributed to various possible environmental conditions (network latency, resource unavailability, high resource usages).

 

Environment

Release: DSWAHA01300-12-Workload Automation DE-High Availability
Component:

Resolution

To fix this issue, we can increase the the "maximum run time of a java script" parameter value from the Desktop Client.

On the Desktop Client, Admin -> Topology -> Server Shared Parameters -> "maximum run time of a java script (seconds)" default is 300 seconds.

Set this value to a higher value to ensure that the java script execution is not interrupted due to timeout.