Class TasksWebService
java.lang.Object
ubic.gemma.rest.TasksWebService
RESTful interface for polling background pipeline tasks submitted via the dispatch endpoints on
DatasetsWebService (preprocess, diagnostics, batch info fetch, differential analysis run/redo/remove).
Tasks are kept in memory only and evicted ~10 minutes after completion; once evicted the endpoint returns 404.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancelTask(String taskId) Cooperative task cancellation.getTaskStatus(String taskId)
-
Constructor Details
-
TasksWebService
public TasksWebService()
-
-
Method Details
-
getTaskStatus
@GET @Path("/{taskId}") @Produces("application/json") @PreAuthorize("hasAuthority('GROUP_CURATOR')") public ResponseDataObject<TaskStatusValueObject> getTaskStatus(@PathParam("taskId") String taskId) -
cancelTask
@DELETE @Path("/{taskId}") @Produces("application/json") @PreAuthorize("hasAuthority('GROUP_CURATOR')") public ResponseDataObject<TaskStatusValueObject> cancelTask(@PathParam("taskId") String taskId) Cooperative task cancellation. Delegates toSubmittedTask.requestCancellation(): the running task checks for the cancellation flag at its own preemption points; this endpoint does NOT force-kill anything. Returns the (post-request) task status snapshot.
-