Interface IResultsService
Interface of the Results Service RESTful API
Namespace: Nvidia.Clara.DicomAdapter.API
Assembly: Nvidia.Clara.Dicom.API.dll
Syntax
public interface IResultsService
Methods
| Improve this Doc View SourceGetPendingJobs(String, CancellationToken, Int32)
Retrieves a list of pending tasks assigned to an agent from Results Service
Declaration
Task<IList<TaskResponse>> GetPendingJobs(string agent, CancellationToken cancellationToken, int count)
Parameters
Type | Name | Description |
---|---|---|
String | agent | name of the agent |
CancellationToken | cancellationToken | |
Int32 | count | number of tasks to retrieve |
Returns
Type | Description |
---|---|
Task<IList<TaskResponse>> | List of tasks |
ReportFailure(Guid, Boolean, CancellationToken)
Reports failed status to the Results Service for the specified task
Declaration
Task<bool> ReportFailure(Guid taskId, bool retryLater, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Guid | taskId | task to update |
Boolean | retryLater | indicates if task will be retries at a later time |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<Boolean> | bool if call was successful; false otherwise |
ReportSuccess(Guid, CancellationToken)
Reports successful status to the Results Service for the specified task
Declaration
Task<bool> ReportSuccess(Guid taskId, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Guid | taskId | task to update |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<Boolean> | bool if call was successful; false otherwise |