Closed appleby closed 4 years ago
I'm planning to follow this up "real soon" with a "real fix", but wanted to unblock the wheels of progress on ec2 enabling.
Of course, by the law of Quick-and-Dirty Temporary Fixes, this hack will probably outlive us all.
Add a
(SLEEP 1)
after everyBT:DESTROY-THREAD
call.This is a work-around that enables switching over to EC2 runners for the gitlab CI. Something about the EC2 environment was tickling a race in our combination of using
BT:DESTROY-THREAD
+ our reliance onPZMQ
's implicit global*DEFAULT-CONTEXT*
.A proper fix for this likely entails some combination of
1) Explicitly creating our own
PZMQ:CONTEXT
inRPCQ:START-SERVER
and passing that down to worker threads.2) Adding a graceful shutdown option to the
RPCQ
server to avoid the need toBT:DESTROY-THREAD
(see #75).