Share via


QueueSystem.RetryJob method

Reprocesses a failed job in the Project Server Queuing Service.

Namespace:  WebSvcQueueSystem
Assembly:  ProjectServerServices (in ProjectServerServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/RetryJob", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/",  _
    ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub RetryJob ( _
    JobGUID As Guid _
)
'Usage
Dim instance As QueueSystem
Dim JobGUID As Guid

instance.RetryJob(JobGUID)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/RetryJob", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/", 
    ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void RetryJob(
    Guid JobGUID
)

Parameters

Remarks

Project Server allows RetryJob only if the job state is Unknown, Failed, FailedNotBlocking, or Cancelled. If the job state is any other value, RetryJob generates a SOAP exception. Using RetryJob on CorrelationBlocked jobs does not work because the retry needs to happen at the correlation level.

RetryJob sets the job state to ReadyForProcessing. If the current job state is Failed, RetryJob also sets the state of all other jobs blocked by the failed job from CorrelationBlocked to ReadyForProcessing.

A Project Server administrator can use the Manage Queue Jobs page in Project Web App (https://ServerName/ProjectServerName/_layouts/pwa/Admin/queue.aspx) to view and retry failed jobs.

Project Server Permissions

Permission

Description

ManageQueue

Allows the user to manage the Project Server queue. Global permission.

See also

Reference

QueueSystem class

QueueSystem members

WebSvcQueueSystem namespace