Skip to content
Snippets Groups Projects
Commit de55e682 authored by Simon Belak's avatar Simon Belak
Browse files

Simplify stopping condition

parent bc8ff64f
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,5 @@
(future-done? f))
@f))
; Wait for the transaction to finish
(while-with-timeout (let [job (ComputationJob job-id)]
(not (or (async/done? job)
(async/canceled? job)))))
(while-with-timeout (-> job-id ComputationJob async/running?))
(async/result (ComputationJob job-id)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment