-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add parameter for multiple warmup requests #13
Comments
Please add this! I really need it. For some reason, during deployments to Azure App Service, the app seems to restart again after the warmup task but before or while the subsequent smoke test task runs. The smoke tests then fail because the app is no longer up. |
At the moment you just can ignore all failures and you need to calibrate it yourself. Possible is also to add a second warmup - to be 100% sure. E.g. 10 minutes warm up with erros and then the second (or as much as you want) warmup without errors allowed. Don't know every backend technology in detail, but agree to enhance this for better usability. :) |
I've added a success count parameter. You can increase this number to make sure a number of requests are successfull. Between the request it will wait the It is published in the marketplace, Package version 1.2.0, Job version 2.2.0. I'll close this issue. |
Is there a bug somewhere? Here is the output after I have configured success count = 3. Note that once it's up, it goes to
|
There seems to be another bug, too (an off-by-one error): If I configure 3 successful tries, it actually performs 4. See the last four
|
I'm currently on holiday, ill check and fix when i get home (26th of
August)
Op wo 10 aug. 2022 09:34 schreef Christer van der Meeren <
***@***.***>:
… There seems to be another bug, too (an off-by-one error): If I configure 3
successful tries, it actually performs 4. See the last four
Invoke-WebRequest below.
2022-08-10T09:27:15.9917421Z ##[section]Starting: Warmup website
2022-08-10T09:27:16.0203570Z ==============================================================================
2022-08-10T09:27:16.0203883Z Task : Website Warmup
2022-08-10T09:27:16.0204117Z Description : This task warms up a website by calling its url
2022-08-10T09:27:16.0204330Z Version : 2.2.0
2022-08-10T09:27:16.0204505Z Author : Luuk Sommers
2022-08-10T09:27:16.0205355Z Help : [More Information](https://github.com/luuksommers/vsts-website-warmup)
2022-08-10T09:27:16.0205679Z ==============================================================================
2022-08-10T09:27:26.4833026Z Invoke-WebRequest https://chkboxapi-production-swap.azurewebsites.net/maintenance/health/ready, try 1 / 15
2022-08-10T09:27:27.0114269Z ##[warning]The remote server returned an error: (403) Forbidden.
2022-08-10T09:27:27.0122746Z Sleep for 10 seconds, before try 2 / 15
2022-08-10T09:27:37.0136743Z Invoke-WebRequest https://chkboxapi-production-swap.azurewebsites.net/maintenance/health/ready, try 2 / 15
2022-08-10T09:27:37.5676122Z Site is up, check 0 / 3, will do another check.
2022-08-10T09:27:47.5686552Z Invoke-WebRequest https://chkboxapi-production-swap.azurewebsites.net/maintenance/health/ready, try 3 / 15
2022-08-10T09:27:47.8542457Z ##[warning]The remote server returned an error: (503) Server Unavailable.
2022-08-10T09:27:47.8557930Z Sleep for 10 seconds, before try 4 / 15
2022-08-10T09:27:57.8572832Z Invoke-WebRequest https://chkboxapi-production-swap.azurewebsites.net/maintenance/health/ready, try 4 / 15
2022-08-10T09:28:08.6605425Z Site is up, check 0 / 3, will do another check.
2022-08-10T09:28:18.6630322Z Invoke-WebRequest https://chkboxapi-production-swap.azurewebsites.net/maintenance/health/ready, try 5 / 15
2022-08-10T09:28:19.0744945Z Site is up, check 1 / 3, will do another check.
2022-08-10T09:28:29.0762477Z Invoke-WebRequest https://chkboxapi-production-swap.azurewebsites.net/maintenance/health/ready, try 6 / 15
2022-08-10T09:28:29.4754616Z Site is up, check 2 / 3, will do another check.
2022-08-10T09:28:39.4778868Z Invoke-WebRequest https://chkboxapi-production-swap.azurewebsites.net/maintenance/health/ready, try 7 / 15
2022-08-10T09:28:39.8635154Z Site is running in 73.3869983 seconds
2022-08-10T09:28:39.9262744Z ##[section]Finishing: Warmup website
—
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJBQH4OREGROWU2KM7X7DLVYNZR3ANCNFSM4MMHUKEQ>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
While it's possible to to set a retry count if warmup calls fail, there will only ever be 1 success call (unless you list the same suffix multiple times).
Please add a parameter so that you can require N successful requests before the app is considered warmed up.
The text was updated successfully, but these errors were encountered: