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()
|
session = db.get_db()
|
||||||
cfg = config.load()
|
cfg = config.load()
|
||||||
if cfg["healthchecks"]["url"] != "":
|
if cfg["healthchecks"]["url"] != "":
|
||||||
requests.get(cfg["healthchecks"]["url"])
|
requests.get(cfg["healthchecks"]["url"] + '/start')
|
||||||
|
|
||||||
for user in session.query(model.User):
|
for user in session.query(model.User):
|
||||||
logger.info("==== USER: %s =====", user.name)
|
logger.info("==== USER: %s =====", user.name)
|
||||||
@@ -189,6 +189,9 @@ def notify_users():
|
|||||||
logger.info("New API status: %s", user.apistatus)
|
logger.info("New API status: %s", user.apistatus)
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
|
if cfg["healthchecks"]["url"] != "":
|
||||||
|
requests.get(cfg["healthchecks"]["url"])
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = parse_args(sys.argv[1:])
|
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