Optimise dag processing
What does this MR do?
This makes DAG processing way cheaper, as we only process jobs that are guaranteed candidates to be complete.
We tend to find all jobs with DAG, that are:
- Dependent on jobs triggering processing,
- Do not have dependencies that are not finished.
Does this MR meet the acceptance criteria?
Conformity
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/65538
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/65457
Edited by Grzegorz Bizon