Trigger option: Override engine timeout for lengthy triggers


First published on: 10/08/2024/12:02 pm

 

 

When a trigger fires, it retrieves data from another system. This process usually takes a few minutes.

 

When the trigger fails due to timeout limits (it takes longer than a few minutes), it may be a sign that the other system is non-responsive. 

 

However, when the trigger is expected to take longer than a few minutes, you can enable a flag to give the engine more time before it fails due to timeout limits, as outlined below.

 

If the trigger requires more time to run, you must configure two settings: 

  1. Connection Config: Timeout option.
    • This ensures the connector itself permits long-running transactions.
      • This will also affect action timeout limits, not just trigger timeout limits.
        • To avoid lengthy action timeout issues, set per-action timeout limits to override the connection config on a per-action basis.
    • Depending on the Connector, this option may be configurable within the connection config. 
      • Universal API Connector or Sage Intacct Connector: Set the "Request Time Out" in milliseconds to match the configured timeout duration (in this example, 1 hour 15 minutes on the workflow trigger is 4,500,000 on the Request Time Out)
      • SAP Business One Hana (Service Layer) Connector or SAP Business One SQL (B1WebAPI) Connector: Set the "Request Timeout in Milliseconds" to match the configured timeout duration (in this example, 1 hour 15 minutes on the workflow trigger is 4,500,000 on the Request Time Out in Milliseconds)
      • Other Connectors: If the Request Time Out field is available, verify whether it is in milliseconds (most common) or seconds, then configure the timeout value to match the workflow trigger override engine timeout value. 
  2. Workflow Trigger Schedule option: Override engine timeout for lengthy triggers.
    • This option signals to the engine that it may extend its timeout limit. 
    • To configure this option: 
      • Edit the Workflow Trigger and scroll down to the schedule settings section.
      • In the Advanced Options sub-section, enable the checkbox "Override engine timeout for lengthy triggers".
      • Configure the desired timeout duration in hours and minutes.
        • This is the new engine limit for triggers that take a long time to respond.

 

 

Previous


  

Last modified: 03/25/2025/12:52 pm

-