Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Does Javascript Policy continue the processing when timeout is reached and continueOnError=true?

Hi,

We are using JavaScript policy to generate the log message with timeout as 250ms and continueOnError=true.

In MP's system.log, we see the below log:

policy:createLogMessage Apigee-Main-11 INFO JAVASCRIPT.EXEC - JSContect.hasExpired() : JSStep Timeout. Time Limit was 250ms. Execution expired by 401ms. Time Spent in Major GC 0ms. Time Spent in All GC 0ms. Num of GC events 0. JS Ran for 651ms, InstructionCount=2058

1. From the log, it looks like JavaScript Policy continued processing in the background and completed in 651ms. Is that correct?

2. Next to JS is the Message Logging Policy in the PostProxy FlowHook. In the above-mentioned scenario (If JavaScript keeps executing in the background), will next policy(Message Logging) be executed again once JS finishes the execution?

0 2 372
2 REPLIES 2
Top Solution Authors