yigit / android-priority-jobqueue

A Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.
3.4k stars 395 forks source link

Better utilization of threads #436

Open cipson opened 6 years ago

cipson commented 6 years ago

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