(values-list retn))))
(defun start-shutdown-thread ()
+ (format t "Starting AWS shutdown thread~%")
(sb-thread:make-thread
(lambda ()
(loop
(sleep 30)))
:name "AWS Shutdown Thread"))
+(defmethod candle:shutdown-system ((job-system (eql :aws)))
+ (format t "Shutting down AWS box for exit~%")
+ ; If there's a job going, we need to wait for it to finish
+ (sb-thread:with-mutex (*aws-mutex*))
+ (stop-aws-box))
+
(defun aws-command (cmd &rest args)
(with-output-to-string (out)
(sb-ext:run-program