android-priority-jobqueue
android-priority-jobqueue copied to clipboard
A grouped job fails, others are still executed
I have a number of jobs with the last one depending on the execution of the rest. I assumed that i could solve this by giving them all the same group id and adding the dependent job last, but if one of them fails (for example with an IOException) the others are all executed nontheless.
Is this something i could solve within this library or would i have to code something myself?
Cheers
you can call cancel jobs with group id in the onCancel callback.
@yigit
If in one group three jobs and first job failed, second and third jobs run? Second and third jobs not wait call onCancel method from first job?