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

Add done? guard

parent dd24176d
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,8 @@
deref ; var
deref ; atom
(get job-id))]
(if (and f (not (future-cancelled? f)))
(if (and f (not (or (future-cancelled? f)
(future-done? f))))
{:result @f
:status (-> job-id ComputationJob :status)
:created-at (u/new-sql-timestamp)}
......
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