I have this function/process '(runjob)' that takes 2 or 3 minutes to run. It runs fine from the toplevel. If I try to initiate it with a defop as a thread the function bombs 9 or 10 seconds in to the process. (defopl doit req
(let user (get-user req)
(if (admin user)
(do (thread (runjob))
(prn "process excecuted!")))))
Error...
"display: output port is closed"
I thought I could get away with this given I threaded it, but apparently not. Any suggestions? |