def dependents_key(x):
        """Choose a path from our starting task to our tactical goal.

        This path is connected to a large goal, but focuses on completing a small goal and being memory efficient.

        """
        return (
            # Focus on being memory-efficient
            len(dependents[x]) - len(dependencies[x]) + num_needed[x],
            -metrics[x][3],  # min_heights
            # tie-breaker
            StrComparable(x),
        )
Choose a path from our starting task to our tactical goal.

        This path is connected to a large goal, but focuses on completing a small goal and being memory efficient.

        
src/flash/core/serve/dag/order.py