Hitting n8n webhook asynchronous

Hey!
i have created a webhook in my n8n workflow which will take 40 seconds of execution time,
i want to restrict the requests of this webhook like
If any one person hits this webhook it will take 40 seconds of execution time once after performing the operation it will return the response
So, until finishing of the first request no other requests should start, the second request reponse should be “The workflow is in use try after some time”.

How to restrict this ?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Nagarimadugu_Bhanu_P ,

Unfortunately, I don’t think there is a way to set up what you’re describing using just n8n.
As the webhook gets called, the execution starts so you’d need to have a second execution running parallel to the first. This would just add another execution to the queue to be started when the 1st one ended - but by then you don’t need the warning execution anymore.

I would maybe lookup some throttling services that would help you manage concurrent requests - redis could be an option - Redis node documentation | n8n Docs

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.