coleifer / huey

a little task queue for python
https://huey.readthedocs.io/
MIT License
5.2k stars 370 forks source link

Max Tasks per Worker Process #819

Closed danmarsh closed 3 weeks ago

danmarsh commented 3 weeks ago

Is there a way for the huey_consumer to restart processes after a certain number of tasks are completed?

Similar to the worker_max_tasks_per_child setting in Celery: https://docs.celeryq.dev/en/stable/userguide/workers.html#max-tasks-per-child-setting

coleifer commented 3 weeks ago

We don't offer that currently, no.