The real execution (runImpl) is executed asynchronously, and returns quickly.
The result (status = scheduling) is sent to the ResultActor, but might not be updated into the ResultStorage.
In the mean time, the runImpl function already finishes (because it is a Future), and client's request to get the status of the job will fail because the result is not in ResultStorage yet.
Need to fix this properly.
The real execution (runImpl) is executed asynchronously, and returns quickly. The result (status = scheduling) is sent to the ResultActor, but might not be updated into the ResultStorage. In the mean time, the runImpl function already finishes (because it is a Future), and client's request to get the status of the job will fail because the result is not in ResultStorage yet. Need to fix this properly.