ollionorg / cloudendure-python

A Python 3.7+ client and utilities for CloudEndure
https://2ndWatch.github.io/cloudendure-python/
MIT License
11 stars 10 forks source link

Added lag check; Refactored time audit code to prevent repeated code #123

Closed selpan closed 4 years ago

selpan commented 4 years ago

Closes #122

Refactors time check to avoid duplicate code when checking for lag is_lagged vs. stale machines not_current

is_lagged is set for more than 2 minutes (120 seconds) not_current is set for more than 24 hours (86400 seconds)