Multi-user timer with Google App Engine -


we implementing multi-user timer google app engine. when timer ends need calculations , send results users. several users should able start , pause timer different browsers. use channels api communication. how trigger calculations @ specific time?

one idea have is, when timer starts, create push task eta set timer finish time. when task runs, check timer state stored in memcache or datastore, , create task if state modified due pausing timer. if timer finished task launches calculations. there better approaches, since there no guarantee task run @ eta?

you have repeating task (re-enqueing itself, delay specified in seconds) check timer state , perform calculations if appropriate or return if not.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -