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

Allow customization of worker grace period and sleep interval in Docker image #3317

Closed
Dogacel opened this issue Jan 24, 2024 · 1 comment
Closed
Assignees
Labels
api Issue related to the REST API improvement Improvement to the existing platform

Comments

@Dogacel
Copy link
Contributor

Dogacel commented Jan 24, 2024

RUN_BY_PROCESSOR=1 python manage.py runprocessor --sleepintervalms 500

We should be able to configure the the task processors similar to how we can configure the server as shown below,

--timeout ${GUNICORN_TIMEOUT:-30} \
--workers ${GUNICORN_WORKERS:-3} \
--threads ${GUNICORN_THREADS:-2} \
--access-logfile $ACCESS_LOG_LOCATION \

The configurable parameters should be:

| Argument | Description | Default |
| ------------------- | ------------------------------------------------------------------------- | ------- |
| `--sleepintervalms` | The amount of ms each worker should sleep between checking for a new task | 2000 |
| `--numthreads` | The number of worker threads to run per task processor instance | 5 |
| `--graceperiodms` | The amount of ms before a worker thread is considered 'stuck'. | 20000 |

@Dogacel
Copy link
Contributor Author

Dogacel commented Feb 13, 2024

I believe we can close this as #3355 is merged.

@Dogacel Dogacel closed this as completed Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API improvement Improvement to the existing platform
Projects
None yet
Development

No branches or pull requests

4 participants