Displaying 1 result from an estimated 1 matches for "election_work".
Did you mean:
election_worker
2008 Sep 29
0
BackgroundRB for multiple parallel tasks: thread or worker?
...s chat.do_election on
each (Chat is a model).
However, it is more complicated. 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 immediate...