Workato · API platform

recipe execution takes too long

Short answer

A Workato API platform endpoint returns 504 with recipe execution takes too long when the API recipe's job does not respond within the endpoint's timeout. The default is 30 seconds and the maximum is 240 seconds, so make the recipe faster or raise the endpoint's timeout.

VerifiedLast verified

01Error text

Workato error
504 Gateway timeout
recipe execution takes too long

02Likely causes

  • The job took too long to respond.
  • The default quota for API endpoints is 30 seconds.
  • For API recipes, the job is terminated and no timeout error is raised, so the Monitor block does not trigger and Error block actions are not executed.

03How to fix it

  1. Open the job for the timed-out request and find the steps that take the most time.
  2. Shorten the recipe's work before it responds, for example by removing slow steps from the request path.
  3. Customize the timeout by editing the API endpoint. The API platform job timeout is 30 seconds by default and 240 seconds at most.
  4. Do not rely on the recipe's error handling for this case, because the Monitor block is bypassed on an API recipe timeout.

iNotes

The Test request tab uses a fixed 30 second timeout.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for Workato work:Open Workato jobsWorkato rates and salariesHire a senior Workato developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.