Changing max run time of a javascript in DSeries
search cancel

Changing max run time of a javascript in DSeries


Article ID: 5701


Updated On:


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


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.


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


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).



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.