README.rdoc in rufus-scheduler-2.0.16 vs README.rdoc in rufus-scheduler-2.0.17
- old
+ new
@@ -122,9 +122,13 @@
at then end of it will make the current (main) thread join the scheduler and prevent the Ruby runtime from exiting.
You shouldn't be exposed to this issue when using EventMachine, since while running EM, your runtime won't exit.
+=== important note about #join
+
+DO NOT CALL this #join method if you're running rufus-scheduler from Rails or Sinatra or any application that's already some kind of 'daemon'. It's not necessary! #join is meant for small standalone scripts.
+
== block parameters
Scheduled blocks accept 0 or 1 parameter (this unique parameter is the job
instance itself).