Run next job only if other job failed

is there a requires, filter or a when condition that allows me to mark a job runnable only if another job has failed?