Displaying 1 result from an estimated 1 matches for "trigger_election".
2008 Sep 29
0
BackgroundRB for multiple parallel tasks: thread or worker?
...cated. Often there is not enough members to
vote: no quorum. Sometimes the chatters can "recall" a winner with an
early vote. So each chat room is essentially its own story, with its own
chronology.
I know what the election_worker class will look like:
start_all_elections()# for create
trigger_election(chat_name)# tell Rails Model chat to do election with
individual chat
stop_voting(chat_name)# Rails tells election_worker no quorum
start_voting(chat_name)# quorum is reached
skip_to_vote(chat_name)# vote is taken immediately, and clock reset,
when Rails detects a recall
What I DO NOT know is how...