Horde: how to trigger a step or a job when its dependency failed

Hello

Here is what I’m trying to do with Horde/buildgraph:

  1. job A is triggered every hour (scheduled in *.stream.json)
  2. job B is automatically triggered when job A is finished even if it fails
  3. job B must know the jobId of jobA

What is the best way to do that?

I’ve looked at “chainedJobs” but it works only in case of success of the parent (if I’m correct).

I could add a step into the buildgraph launching jobA but I didn’t find the proper way to do it (i.e. a step that would be executed even if previous steps failed).

Thank you

Mathieu

Steps to Reproduce

Hello Mathieu, in 5.8 (also available now if you are building from source from ue5 main on GitHub) is a new build graph attribute called OptionalRequires, which allows a step to continue execution if its dependent step failed.

Matthew

Ok I’ll try to find a workaround until 5.8 is released :slight_smile:

Thank you!

Mathieu