GithubHelp home page GithubHelp logo

Comments (3)

daisy613 avatar daisy613 commented on August 21, 2024

Any idea if this will be implemented? I'm interested in being able to collect data from all runspaces in a single object, and then do something with that object when all runspaces complete.

from invoke-parallel.

RamblingCookieMonster avatar RamblingCookieMonster commented on August 21, 2024

Hi!

Unfortunately, the command is already going a bit overboard with parameters - rather than throw everything into invoke-parallel, I think it makes sense to keep this one separate - that said, if you have any ideas on implementing it in a straightforward way, would love to hear!

You can still do this though. By design, you can simply do:

$whatever = 1..100 | invoke-parallel {
    # Some silly example
    [pscustomobject]@{
        ComputerName = "Server$_"
        Blah = 1
    }
}

If you run into issues with certain items freezing, would could skip items that time out -NoCloseOnTimeout -RunSpaceTimeout 45 would ignore any item that takes longer than 45 seconds to run. Keep in mind memory from those frozen runspaces is chewed up until your powershell instance closes - usually not a problem, but worth knowing about.

On top of this, the two links from the issue still work pretty well if you want to play around with them.

Cheers!

from invoke-parallel.

RamblingCookieMonster avatar RamblingCookieMonster commented on August 21, 2024

Closing this out for now. If folks have more ideas on this that wouldn't clutter the parameters too much, I'd be open to it.

Cheers!

from invoke-parallel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.