Commit b758ca18 authored by Alexandre Boyer's avatar Alexandre Boyer
Browse files

add monitoring logs in gitignore

parent 5b7338ef
......@@ -4,8 +4,8 @@
*.egg-info
## CLI gitignore config
# Commands history
diva_evaluation_cli/bin/private_src/implementation/status/command_history.json
# Monitor logs
*_monitoring.json
# Virtual environments
python_env/
......@@ -17,9 +17,8 @@ import logging
from multiprocessing import *
from .nvml_handler import NvmlHandler
from . import utils
from diva_evaluation_cli.bin.private_src.implementation.resources_monitoring.nvml_handler import NvmlHandler
from diva_evaluation_cli.bin.private_src.implementation.resources_monitoring import utils
logger = logging.getLogger('MONITOR')
......
......@@ -10,9 +10,11 @@ Attributes:
"""
from pynvml import *
from . import utils
import logging
from diva_evaluation_cli.bin.private_src.implementation.resources_monitoring import utils
logger = logging.getLogger('MONITOR')
class NvmlHandler():
......
......@@ -149,7 +149,7 @@ def check_status(query_type, **kwargs):
'system-query': check_status_system}
path = os.path.dirname(__file__)
command_history_json = os.path.join(path, './command_history.json')
command_history_json = os.path.join(path, './command_state_monitoring.json')
status_json = os.path.join(path, './status.json')
......
......@@ -21,7 +21,7 @@ class StatusFactory():
status_id = 0
path = os.path.dirname(__file__)
status_log = os.path.join(path, './command_history.json')
status_log = os.path.join(path, './command_state_monitoring.json')
json_status = {}
if not os.path.isfile(status_log) or os.stat(status_log).st_size == 0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment