Ensure a job has a context before we fail it.
This commit is contained in:
parent
cc9be7b61e
commit
dda0e0393e
1 changed files with 1 additions and 0 deletions
|
@ -130,6 +130,7 @@ class JobController {
|
|||
if (jobTracker.haveAnyFailed(allDependsOn)) {
|
||||
Log.w(TAG, "This job depends on a job that failed! Failing this job immediately.");
|
||||
List<Job> dependents = onFailure(job);
|
||||
job.setContext(application);
|
||||
job.onFailure();
|
||||
Stream.of(dependents).forEach(Job::onFailure);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue