towhee icon indicating copy to clipboard operation
towhee copied to clipboard

[Bug]: Task exceeded maximum timeout value (180 seconds)

Open utopictown opened this issue 2 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

Im running milvus app on top fastapi served using supervisord in a docker, and SOMETIMES i had Task exceeded maximum timeout value (180 seconds) from towhee/image-embedding-resnet50 extractor, is there any way to increase the timeout? or do we have any lead that might cause this?

Expected Behavior

successfully extracting the item

Steps To Reproduce

1. milvus app on top of fastapi
2. extractor run on queue with python RQ
3. served on supervisord inside docker

Environment

- Towhee version(e.g. v0.1.3 or 8b23a93): towhee/image-embedding-resnet50
- OS(Ubuntu or CentOS):
- CPU/Memory:
- GPU:
- Others: internet 4-5 Mbps

Anything else?

No response

utopictown avatar Aug 27 '22 12:08 utopictown

Did it happen after the docker container started, if so, it is downloading the model weights, you can build a new docker image that already has downloaded the weights.

junjiejiangjjj avatar Aug 29 '22 08:08 junjiejiangjjj

how to get one? do you have any docker image example that already has downloaded the weights?

utopictown avatar Aug 29 '22 09:08 utopictown

After installing towhee, you can run cmd towhee run towhee/image-embedding-resnet50 -i ${image_path}, make sure the image_path can access when building the docker image. In your dockerfile, you can add this

RUN pip install towhee towhee.models
RUN towhee run towhee/image-embedding-resnet50 -i  image.jpg

junjiejiangjjj avatar Aug 29 '22 09:08 junjiejiangjjj

thank you, will try

utopictown avatar Aug 29 '22 10:08 utopictown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Close the stale issues and pull requests after 7 days of inactivity. Reopen the issue with /reopen.

stale[bot] avatar Sep 28 '22 11:09 stale[bot]