다음을 통해 공유


QueueSystem.RetryJob Method

Reprocesses a failed job in the Project Server Queuing Service.

Namespace:  [QueueSystem Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/QueueSystem.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/QueueSystem.asmx?wsdl

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

QueueSystem Web Service