I am looking at using Spring Cloud Task for offloading some some asynchronous jobs that need to be executed. I want to be able to track the results of these so the originating application can report whether it was successful or not. The examples don't seem to show how this would be done. Is there a REST API for reporting on and accessing the task execution status?
Example:
- Server A gets a request to create a resource
- Server A spins off a Spring Cloud Task to execute the creation
- Server A periodically checks whether the task is finished and its result and updates its stores to show that the resource has been successfully created or why it hasn't been creating (allowing re-attempting).
I am looking for a way to do this in such a way so that if Server A goes down for some reason, it can still recover and discover the results of the task.