NAME

Wait-HPOVTaskAccepted

SYNOPSIS

Wait for a task to transition to "running" state.

SYNTAX

Wait-HPOVTaskAccepted [-task] <Object> [[-timeout] <TimeSpan>] [<CommonParameters>]</object>

DESCRIPTION

Wait for the given task to transition to "running" or "pending" state (get to a terminal state, including error) or timeout

PARAMETERS

-Task <Object>
Alias (‘taskuri’)
The uri or object of the task resource to wait for.
Required? true
Position? 1
Default value <none>           
Accept pipeline input? false
Accept wildcard characters? false
-timeout <TimeSpan>
The time or object to wait for the task to be accepted.  Default is to wait for 2 minutes.
Required? true
Position? 2
Default value <none>           
Accept pipeline input? false
Accept wildcard characters? false


<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

None.

OUTPUTS

Task object.

RELATED LINKS

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

PS C:\> Wait-HPOVTaskstart /rest/tasks/F08EE040-DBA7-4806-BB62-993DD0CB4250
Wait for task to be accepted.

-------------------------- EXAMPLE 2 --------------------------

PS C:\> Wait-HPOVTaskstart $task –timeout “00:05:00”
Wait for the task to accept, modifying the default timeout to 5 minutes

Last edited Feb 3, 2014 at 5:10 AM by ChrisLynchHP, version 3