Horrible, but in my testing it works. Thanks Peter!

Ross

> On 11 Jul 2023, at 07:36, Peter Marko via lists.openembedded.org 
> <peter.marko=siemens....@lists.openembedded.org> wrote:
> 
> From: Peter Marko <peter.ma...@siemens.com>
> 
> Current 503 errors seem to last several seconds.
> In most cases there are two errors and third request succeeds.
> However sometimes the outage takes more than time needed
> for two retries and third one also fails.
> 
> Extend retry count from 3 to 5 to improve the probablity
> that the fetcher succeeds.
> 
> Signed-off-by: Peter Marko <peter.ma...@siemens.com>
> ---
> meta/recipes-core/meta/cve-update-nvd2-native.bb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb 
> b/meta/recipes-core/meta/cve-update-nvd2-native.bb
> index a7392405e0..b3d0038c2f 100644
> --- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
> +++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
> @@ -129,7 +129,7 @@ def nvd_request_next(url, api_key, args):
> 
>     full_request = url + '?' + data
> 
> -    for attempt in range(3):
> +    for attempt in range(5):
>         try:
>             r = urllib.request.urlopen(full_request)
> 
> -- 
> 2.30.2
> 
> 
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184130): 
https://lists.openembedded.org/g/openembedded-core/message/184130
Mute This Topic: https://lists.openembedded.org/mt/100074007/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to