I'm coding a poker variant game, and need either ruby or rails to run one big loop to keep the game automated. Ie:
Am I missing a fairly simple function, or is it time to look deeper into delayed_job?
You pretty much need some kind daemon process, but you don't necessarily need any library.
You can write your code as a method on some module, and invoke it using
rails runner. The method can execute a loop containing
sleep <seconds> to execute code and wait. The easy way to stop the process is have it watch for a file to exist in /tmp or something, but you can also do things like write a pid file, and then kill the process later using its pid.