A records-office function usually finishes in under 20 seconds, but the team set timeout to 300 seconds “just in case.” What is the recommended timeout practice?
Select an answer to reveal the explanation.
Short Explanation
Give the meeting room almost as long as the agenda—not all day, and not two minutes for an hour’s work. A timeout near expected duration frees hung invokes sooner without chopping off healthy runs.
Full Explanation
Oracle recommends setting a function timeout close to what the function is likely to need rather than defaulting everything to the maximum. An oversized timeout keeps a failing or hung invoke allocated longer; an undersized timeout fails work that would have finished. Treat timeout as a fitness choice separate from detached versus synchronous invoke behavior.