YaleSTC / shifts

Application to easily track shifts, reports, and payforms for employees.
MIT License
23 stars 18 forks source link

Terminate shift after some maximum time #470

Open shippy opened 9 years ago

shippy commented 9 years ago

Current Student Dev instance has shifts that were not logged out for several months. I cannot imagine any possible use case where a shift could last that long - or indeed more than 24 hours. An expected behavior would be to time out the shift and terminate it.

Possible implementations include a cron script, or - more easily and more dirtily - hook an action on dashboard rendering that checks for and terminates any shifts that are too long.