Exiting wrapper threads
I am creating this issue because I realized that this part had gotten a bit messed up with the refactoring of the wrapper and I have just fixed it. However, I reckon it needs a bit more of testing.
For the vertical and horizontal-vertical wrappers, when a job fails, the wrapper script should not continue, so I added a os._exit(1)
in case of failure. However, for the horizontal-vertical maybe for other use cases it won't make sense. For the moment, as it's being used only for the crossdate-DA, this is necessary because each list depends on the previous one.
For the vertical-horizontal case, each list is independent, so if there is a failure in one of the jobs of one list, the next job of the list should not run, but the other lists must not be affected. Therefore, I added sys.exit()
as it stops only the specific thread instead of the whole script.