Break the chain of work manager requests list for some specific condition or in case of failure
I have three work requests as below
val imageWorker = OneTimeWorkRequestBuilder()
.setConstraints(constraints)
.addTag("imageWork")
.build()
val gpSurveyWorker = OneTimeWorkRequestBuilder()
.setConstraints(constraints)
.addTag("gpSurveyWork")
.build()
val gpSurveyListWorker = OneTimeWorkRequestBuilder()
.setConstraints(constraints)
.addTag("gpSurveyList")
.build()
and I enqueue them in work Manager as...