Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/proxb/PoshRSJob
Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console and allowing throttling on the jobs.
https://github.com/proxb/PoshRSJob
multithreading parallel poshrsjob powershell runspace runspacepool runspaces
Last synced: 5 days ago
JSON representation
Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console and allowing throttling on the jobs.
- Host: GitHub
- URL: https://github.com/proxb/PoshRSJob
- Owner: proxb
- License: mit
- Created: 2014-06-28T03:18:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-08-31T06:31:46.000Z (about 4 years ago)
- Last Synced: 2024-08-02T17:36:11.065Z (3 months ago)
- Topics: multithreading, parallel, poshrsjob, powershell, runspace, runspacepool, runspaces
- Language: PowerShell
- Homepage:
- Size: 480 KB
- Stars: 539
- Watchers: 60
- Forks: 87
- Open Issues: 54
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - proxb/PoshRSJob - Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console and allowing throttling on the jobs. (PowerShell)
README
PoshRSJob 1.7.4.4
[![Build status](https://ci.appveyor.com/api/projects/status/svrd4ho4otugki24?svg=true)](https://ci.appveyor.com/project/proxb/poshrsjob) [![Join the chat at https://gitter.im/proxb/PoshRSJob](https://badges.gitter.im/proxb/PoshRSJob.svg)](https://gitter.im/proxb/PoshRSJob?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console.
### Be sure to check out and contribute to the [Wiki](https://github.com/proxb/PoshRSJob/wiki)!
#### Download and install PoshRSJob from the PowerShellGallery using PowerShell:
```PowerShell
Install-Module -Name PoshRSJob
```#### Download the latest release (1.7.4.4)
https://github.com/proxb/PoshRSJob/releases/download/1.7.4.4/PoshRSJob.zipMore information and examples here: http://learn-powershell.net/2015/04/19/latest-updates-to-poshrsjob/
Older post with some legacy examples found here: http://learn-powershell.net/2015/03/31/introducing-poshrsjob-as-an-alternative-to-powershell-jobs/
#### Now working on Linux/MacOS with PowerShell Core!
![alt tag](https://github.com/proxb/PoshRSJob/blob/master/Images/PoshRSJob.gif)#### Examples
=================
```PowerShell
$Test = 'test'
$Something = 1..10
1..5|start-rsjob -Name {$_} -ScriptBlock {
[pscustomobject]@{
Result=($_*2)
Test=$Using:Test
Something=$Using:Something
}
}
Get-RSjob | Receive-RSJob
```
![alt tag](https://github.com/proxb/PoshRSJob/blob/master/Images/GetRSJob-ReceiveRSJob.gif)#### This shows the streaming aspect with Wait-RSJob
```PowerShell
1..10|Start-RSJob {
if (1 -BAND $_){
"First ($_)"
}Else{
Start-sleep -seconds 2
"Last ($_)"
}
}|Wait-RSJob|Receive-RSJob|ForEach{"I am $($_)"}
```
![alt tag](https://github.com/proxb/PoshRSJob/blob/master/Images/RSJobStreamingExample.gif)#### Nano Support for PoshRSJob
![alt tag](https://github.com/proxb/PoshRSJob/blob/master/Images/NanoPoshRSJob.png)