Skip to content
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

Worker_timeout #92

Open
MuhammadKhalid3975 opened this issue Dec 30, 2021 · 2 comments
Open

Worker_timeout #92

MuhammadKhalid3975 opened this issue Dec 30, 2021 · 2 comments

Comments

@MuhammadKhalid3975
Copy link

why worker timeout is a not parameter to ThreadedStreamer, my Object detection model takes 5 seconds to do inference on image and I want to increase it

@cgr71ii
Copy link

cgr71ii commented Sep 18, 2022

I've run into this problem as well. In case it helps someones, you can modify this timeout from the installation:

f=$(python -c 'import service_streamer as ss; print(ss.service_streamer.__file__)')
echo "$f"

# Modify variable `WORKER_TIMEOUT` from $f with the desired value
desired_value="60" # Modify this variable

cat "$f" | grep "^WORKER_TIMEOUT" # Current value

# Modify the file
sed -E -i "s/^WORKER_TIMEOUT = [0-9]+\$/WORKER_TIMEOUT = ${desired_value}/" "$f"

@raphael-sch
Copy link

you can do

import service_streamer
service_streamer.service_streamer.WORKER_TIMEOUT = 120

before importing the Streamer

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

No branches or pull requests

3 participants