Hi Chris,

Thanks for posting an example - unfortunately I can't get onto it at the 
moment because it seems gitlab is down :(

FWIW, I've seen a similar issue before where the schedule will run for a 
minute or so, then the process will exit successfully (even though you'd 
like it to continue) - is this what you're seeing? If so, this was caused 
by there being no non-daemon threads left running in the JVM, so the JVM 
exited - we worked around that by adding `@(promise)` to the end of our 
`-main` function, which had the effect of indefinitely pausing the main 
thread, and allowing the schedule to continue.

If not, I'll try gitlab again in a bit!

James

On Monday, November 21, 2016 at 3:03:45 PM UTC, Chris Snyder wrote:
>
>
> Have a program I want to run every 5 seconds unless the previous run is 
> not finished then I want it to wait on the previous run to finish.
> To do this I used a library called Chime (https://github.com/jarohen/chime). 
>
>
> *The Problem* is the program works perfectly in repl but will not work 
> outside out of it?
>
> lein trampoline run - does not work 
> lein run - does not work 
> Java -jar (point to the uberjar file) - does not work 
>
> lein repl then running main  -does work 
>
> Here is a small example I put together 
> https://gitlab.com/csnyder/chime-test/tree/master
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to