Skip to content

add retry to http_client #39

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

Merged
merged 1 commit into from
May 21, 2024
Merged

add retry to http_client #39

merged 1 commit into from
May 21, 2024

Conversation

tzwm
Copy link
Member

@tzwm tzwm commented May 21, 2024

No description provided.

@tzwm tzwm requested review from zcy831 and kjx-talesofai May 21, 2024 08:11
Copy link

@kjx-talesofai kjx-talesofai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. please try to set timeout to 0.1, and see if retry logic activated.

import os
from PIL import Image, ImageSequence, ImageOps
import numpy as np
import torch
from ..utils import http_client

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我不太确定 relative import 是否在这里生效. 因为这个 python 的调用环境的 root 变了, 这个可能就报错了.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我其实也不太确定,我只能说本地和线上测试这样能跑通,原理没仔细研究…… 🙈

@tzwm tzwm merged commit a27e603 into main May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants