Workflow MaxSessionsPerWorkflow

Welcome Forums General PowerShell Q&A Workflow MaxSessionsPerWorkflow

Viewing 3 reply threads
  • Author
    Posts
    • #254039
      Participant
      Topics: 52
      Replies: 209
      Points: 873
      Helping Hand
      Rank: Major Contributor

      How can I increase the sessions in a PS 5.1 Workflow? I’ve tried setting the max to 10 using this

      and then in the command referencing the session like this

       

      But still only 5 sessions.

      Am I doing something wrong?

      • This topic was modified 2 months, 3 weeks ago by Iain.
    • #254072
      Senior Moderator
      Topics: 9
      Replies: 1408
      Points: 5,227
      Helping Hand
      Rank: Community MVP

      See if there is any parameter which limits the concurrent sessions, such parameter normally has the name -ThrottleLimit

    • #254105
      Participant
      Topics: 52
      Replies: 209
      Points: 873
      Helping Hand
      Rank: Major Contributor

      Yes there is, and it’s set to 10

       

       

    • #254276
      Participant
      Topics: 52
      Replies: 209
      Points: 873
      Helping Hand
      Rank: Major Contributor

      I’ve gone down another path, rather than using a WorkFlow, I’m using a RunSpace and that’s working nicely for me.

      I found this article helpfull: https://xkln.net/blog/multithreading-in-powershell–running-a-specific-number-of-threads/

Viewing 3 reply threads
  • You must be logged in to reply to this topic.