mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-08 13:06:29 +00:00
* Move utility functions from _enqueue_next_runnable_component (#7895) * Isolate logic to check if we're stuck in a loop * Simplify for else * Add missing return in docstring * Emit warning when stuck in a loop * Fix docstring Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com> * Add utility function to move Components in queues * Add function to find next Component to run * Comment update * Add missing break in loop * Make _add_missing_input_defaults less error prone and add tests * Fix tests * Update docstring * Simplify enqueue logic * Remove unused _enqueue_next_runnable_component function * Add method to find Component with lazy variadic input or all inputs with defaults * Simplify _find_next_runnable_lazy_variadic_or_default_component * Remove unnecessary type ignore * Split _dequeue_components_that_received_no_input into separate functions * Fix linting * Simplify variadic check when running Component * Simplify code * Reorganize functions used by Pipeline.run * Rename variables used in Pipeline.run() for clarity * Add comment clarifying last_waiting_queue and before_last_waiting_queue * Add functions to easily update waiting_queue --------- Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>