6464083a6b
Extract the target job processing logic from the monitor_pipeline function into a dedicated run_target_job helper. This improves readability and maintainability by reducing the complexity of the monitor_pipeline function. Also add type casting to ensure proper typing for the job objects and import the necessary Callable type. Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Reviewed-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33750>