I'd like to solve this without any extra command line options if possible (there already have too many of those).
At the core of the problem is that Quantum has inputs which do not come from butler (dataset_id is None) and the Quantum that produces those inputs is not in a graph. I think that right long-term approach for the "split graph" is to have different kind of executor which works on single Quantum and does not need all the graph-related complications. As we don't have that executor now we need some workaround for existing executor to not break in this case.
One possible workaround is to check the number of Quanta in a graph, if there is only one Quantum then it can be assumed that this is a (possibly) split graph and ignore any missing inputs (and not build prerequisites for them). Single-quantum graph can of course be built normally without splitting, but that case will not have non-existing inputs so it should be fine.
Another option is of course to add one more command line option and ignore non-existing inputs iff this option is present.
I'd like to solve this without any extra command line options if possible (there already have too many of those).
At the core of the problem is that Quantum has inputs which do not come from butler (dataset_id is None) and the Quantum that produces those inputs is not in a graph. I think that right long-term approach for the "split graph" is to have different kind of executor which works on single Quantum and does not need all the graph-related complications. As we don't have that executor now we need some workaround for existing executor to not break in this case.
One possible workaround is to check the number of Quanta in a graph, if there is only one Quantum then it can be assumed that this is a (possibly) split graph and ignore any missing inputs (and not build prerequisites for them). Single-quantum graph can of course be built normally without splitting, but that case will not have non-existing inputs so it should be fine.
Another option is of course to add one more command line option and ignore non-existing inputs iff this option is present.