Skip to content

Conversation

@fslef
Copy link
Contributor

@fslef fslef commented Oct 6, 2025

This pull request enhances the Wait-PSFRunspaceWorkflow PowerShell function by introducing an optional progress display feature. This new capability allows users to monitor the workflow's real-time progress, including per-runner and per-queue/item statistics, across all supported waiting modes. The changes are focused on improving usability and visibility during long-running workflow operations.

Progress reporting enhancements:

  • Added a new ShowProgress switch parameter to the function, enabling users to opt-in for dynamic progress output during workflow waits.
  • Implemented detailed progress tracking for each workflow and its runners, showing elapsed time, completion statistics, and queue/item details using nested Write-Progress calls.
  • Integrated progress reporting logic into all workflow waiting modes (Closed, WorkerClosed, Count, WorkerCount, Reference, and WorkerReference), ensuring consistent and informative output regardless of how completion is measured. [1] [2] [3] [4] [5]

These improvements make it much easier for users to track the status and throughput of complex runspace workflows in real time.Refactor Wait-PSFRunspaceWorkflow function to improve parameter handling and add progress reporting.

Close #617

fslef added 3 commits October 6, 2025 21:34
Refactor Wait-PSFRunspaceWorkflow function to improve parameter handling and add progress reporting.
Added detailed comments and examples for the Wait-PSFRunspaceWorkflow function.
Updated progress reporting to use -1 for PercentComplete in various instances, improving clarity in the output.
@FriedrichWeinmann FriedrichWeinmann marked this pull request as ready for review October 12, 2025 12:18
@FriedrichWeinmann FriedrichWeinmann merged commit 0392de0 into PowershellFrameworkCollective:development Oct 12, 2025
1 check failed
@FriedrichWeinmann
Copy link
Member

Thanks for the PR, looks good to me, thank you for taking the time and effort to add this :)

This was referenced Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wait-PSFRunspaceWorkflow: ProgressBar

2 participants