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”.
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