cebes / cebes-server

Cebes servers
https://cebes.github.io
Apache License 2.0
2 stars 0 forks source link

Bug in AsyncExecutor #58

Closed phvu closed 7 years ago

phvu commented 7 years ago

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.