-
Notifications
You must be signed in to change notification settings - Fork 0
/
manager.py
34 lines (28 loc) · 1.09 KB
/
manager.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import getSettlementHashes, getSolverCompetitions, getCallData, getUninternalizedCallData, getContractNames, getOrdersByUid, tagContracts
from dotenv import load_dotenv
from loguru import logger
import os, sys
def main():
# Load environment variables from .env file
load_dotenv()
# Setting logging
logger.remove(0)
logger.add(sys.stdout, level=os.getenv("LOGGER_LEVEL"))
logger.add("logs/manager_{time:YYYY-MM-DD}.log", level=os.getenv("LOGGER_LEVEL"), rotation="100 MB")
while True:
logger.info("Start getSettlementHashes")
getSettlementHashes.main()
logger.info("Start getSolverCompetitions")
getSolverCompetitions.main()
logger.info("Start getCallData")
getCallData.main()
logger.info("Start getUninternalizedCallData")
getUninternalizedCallData.main()
logger.info("Start getContractNames")
getContractNames.main()
logger.info("Start getOrdersByUid")
getOrdersByUid.main()
logger.info("Start tagContracts")
tagContracts.main()
if __name__ == "__main__":
main()