tag:help.appveyor.com,2012-11-13:/discussions/problems/15879-webhook-deploy-timeoutAppVeyor: Discussion 2018-08-31T00:52:56Ztag:help.appveyor.com,2012-11-13:Comment/459199242018-08-18T18:52:41Z2018-08-18T18:52:41ZWebhook Deploy timeout<div><p>Honestly I do not think this is correct way to deal with webhook. Web server should validate webhook and if it is correct, return 204 and start what it needs to do asynchronously.</p>
<p>For example AppVeyor behaves this way, when gets webhook from GitHub. All GitHub webhooks to AppVeyor would fail if we response only after build completed.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/459199242018-08-18T20:06:37Z2018-08-18T20:06:37ZWebhook Deploy timeout<div><p>For some scenarios I totally agree that WebHooks should launch some async operation. If a hook would take e.g. >10mins there is more complex stuff ongoing and there should run an async job.</p>
<p>But for most of the simple cases having an asynchronous job would be quite an overhead. e.g. in PHP you do not have the easy possibility to start an asynchronous job, it simply does not exist by design. Setting up a whole asynchronous server-side job system (via cron or comparable frameworks) just for a copy-deploy seems an overkill to me.</p>
<p>In my case it is a simple zip-download followed by an extraction of the zip into the correct folder. Nothing special, but might take a few minutes.</p>
<p>Also by having it asynchronously you loose the feedback if something on the deployment fails. The continuous integration builds would claim that the builds was successful even though the deployment steps failed. That's not how continuous integration/deployment should work (IMHO). Again I would need to introduce a separate notification system to keep track of failed deployments.</p>
<p>I guess also other deployments like FTP allow deploys to take longer. Beside that I just stumbled over the "environment" deploy which I somehow missed on the docs so far (I'm quite new to Appveyor). It sounded a bit more like the way that it can run longer operations async to the builds. But also there after 1 min the WebHook runs in a timeout.</p></div>danielku15tag:help.appveyor.com,2012-11-13:Comment/459199242018-08-28T15:23:32Z2018-08-28T15:23:32ZWebhook Deploy timeout<div><p>OK, we will do that. Please watch <a href="https://github.com/appveyor/ci/issues/2588">this</a> GitHub issue. It should not take too long to implement.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/459199242018-08-31T00:52:52Z2018-08-31T00:52:52ZWebhook Deploy timeout<div><p>We added this feature (check <a href="https://www.appveyor.com/docs/deployment/webhook/">documentation</a>). Your scenario should work now.</p></div>Ilya Finkelshteyn