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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -