erpreciso / school-tagging

school-tagging project repo
GNU General Public License v3.0
2 stars 3 forks source link

automatic end lesson in case teacher is not available #26

Closed erpreciso closed 10 years ago

erpreciso commented 10 years ago

after the teacher is disconnected for a while, automatically end lesson and logout teacher

erpreciso commented 10 years ago

using the thread module it's possible to assign a timer after the channel disconnection message arrived, and logout the teacher in case of no action on his side

erpreciso commented 10 years ago

use the Timer class of the threading module https://docs.python.org/2/library/threading.html#timer-objects

erpreciso commented 10 years ago

it looks complicated to implement the timer; better the cron service https://developers.google.com/appengine/docs/python/config/cron

erpreciso commented 10 years ago

implemented the cron job that automatically clean all objects every hour