Public/ps1/Job/Create-ApprxrPipeline.ps1

<#
    .SYNOPSIS
    Creates a new Apprxr pipeline and starts its remote job thread.
 
    .DESCRIPTION
    Sets configuration values for the pipeline's sleep interval and direct processing flag, then starts the remote job thread for the pipeline.
 
    .PARAMETER name
    The name of the pipeline to create.
 
    .PARAMETER sleep
    The sleep interval (in seconds) for the pipeline. Defaults to 10 if not specified.
 
    .PARAMETER directProcessing
    Indicates whether direct processing is enabled for the pipeline.
 
    .EXAMPLE
    Create-ApprxrPipeline -name 'Pipeline1' -sleep 5 -directProcessing $true
 
    .NOTES
    Used for initializing and starting new pipelines in Apprxr job management.
#>

function Create-ApprxrPipeline {
    param ($name, 
            [int]$sleep,
            $directProcessing)

            if ($sleep -eq 0) {
                $sleep = 10
            }
    Set-ApprxrConfigurationValue -name ($name+"Sleep") -value $sleep
    if ($directProcessing) {
        Set-ApprxrConfigurationValue -name ($name+"DirectProcessing") -value $true
    
    }


    Start-ApprxrRemoteJobThread -name $name
}