measure execution time if healthcheck is enabled
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -140,7 +140,7 @@ def notify_users():
|
||||
session = db.get_db()
|
||||
cfg = config.load()
|
||||
if cfg["healthchecks"]["url"] != "":
|
||||
requests.get(cfg["healthchecks"]["url"])
|
||||
requests.get(cfg["healthchecks"]["url"] + '/start')
|
||||
|
||||
for user in session.query(model.User):
|
||||
logger.info("==== USER: %s =====", user.name)
|
||||
@@ -189,6 +189,9 @@ def notify_users():
|
||||
logger.info("New API status: %s", user.apistatus)
|
||||
session.commit()
|
||||
|
||||
if cfg["healthchecks"]["url"] != "":
|
||||
requests.get(cfg["healthchecks"]["url"])
|
||||
|
||||
|
||||
def main():
|
||||
args = parse_args(sys.argv[1:])
|
||||
|
||||
4
infomentor/filestorage.py
Normal file
4
infomentor/filestorage.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from infomentor import model, db, icloudcalendar, config
|
||||
cfg = config.load()
|
||||
|
||||
class Attachment(object):
|
||||
Reference in New Issue
Block a user