Ensure a job has a context before we fail it.

This commit is contained in:
Greyson Parrelli 2021-02-11 11:43:21 -05:00
parent cc9be7b61e
commit dda0e0393e

View file

@ -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;