Skip to content

Commit

Permalink
Ensure a job has a context before we fail it.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Feb 11, 2021
1 parent cc9be7b commit dda0e03
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -130,6 +130,7 @@ synchronized void submitJobWithExistingDependencies(@NonNull Job job, @NonNull C
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;
Expand Down

0 comments on commit dda0e03

Please sign in to comment.