hibiken / asynq

Simple, reliable, and efficient distributed task queue in Go
MIT License
10k stars 714 forks source link

[FEATURE REQUEST] Globally limit active task number according to task type #797

Closed ydp closed 11 months ago

ydp commented 11 months ago

Is your feature request related to a problem? Please describe. I have many types of task, could I globally (across multiple workers) to limit the active task number, for example, I want only one active task of each type of task.

Describe the solution you'd like I would like a parameters like the Concurrency to limit active task number globally. Is this possible?

Describe alternatives you've considered Currently no.

Additional context Add any other context or screenshots about the feature request here.

ydp commented 11 months ago

I guess global semaphore is sufficient to implement this