...
Unexpected Behavior: Investigate inefficiencies in your code or potential external system delays.
Expected Behavior: If the long processing time is intentional, for example if performing large file processing or working with slow API responses, you can adjust the timeout (in seconds) using the
iguana.setTimeout
function. You must call iguana.setTimeout within the main function to take effect.
Code Block | ||
---|---|---|
| ||
local Timeout = 5*60 --15 minutes function main() iguana.setTimeout(900Timeout) --end 15 minutes in seconds end |
...
|
You can also dynamically update the timeout by leveraging custom field configurations to ensure that the timeout is long enough to account for conditional operations such as retries, avoiding unnecessary delays.
Code Block | ||
---|---|---|
| ||
local Timeout = 5*60 + Configs.RetryCount*Configs.RetryInterval |