yigit/android-priority-jobqueue

Better utilization of threads

cipson opened this issue · 0 comments

Hi all

I configured jobmanager with 3 consumers and 1 loadFactor.
I have 3 types sync jobs and i want all three types of jobs progress at same time. In order to achieve that i set group and used groupBy() and addTags() in Job.

This worked as expected, but i realized that most of the time only one type of sync job is available and remaining 2 threads are not utilized as the tagged group jobs are executed sequentially.

Is there a way i can make all 3 threads execute pending jobs when there is only one group of jobs. but whenever second group jobs arrived, one thread start processing the second type of sync job.

Any clue?

Cipson