Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync stable #1131

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/schains/monitor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def run_skaled_pipeline(
dutils = dutils or DockerUtils()

rc = get_default_rule_controller(name=schain_name)
logger.info('Initing skaled checks manager')
skaled_checks = SkaledChecks(
schain_name=schain.name,
schain_record=schain_record,
Expand All @@ -143,9 +144,12 @@ def run_skaled_pipeline(
sync_node=SYNC_NODE,
)

logger.info('Initing skaled status')
skaled_status = get_skaled_status(schain_name)
logger.info('Initing node-cli status')
ncli_status = get_node_cli_status(schain_name)

logger.info('Initing skaled action manager')
skaled_am = SkaledActionManager(
schain=schain,
rule_controller=rc,
Expand All @@ -155,8 +159,11 @@ def run_skaled_pipeline(
econfig=ExternalConfig(schain_name),
dutils=dutils,
)
logger.info('Fetching skaled checks')
check_status = skaled_checks.get_all(log=False, expose=True)
logger.info('Get automatic repair option')
automatic_repair = get_automatic_repair_option()
logger.info('Creating api only check results')
api_status = get_api_checks_status(status=check_status, allowed=TG_ALLOWED_CHECKS)
notify_checks(schain_name, node_config.all(), api_status)

Expand Down
2 changes: 1 addition & 1 deletion tools/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@


def init_sync_logger():
init_logger(ADMIN_LOG_FORMAT, SYNC_LOG_PATH)
init_logger(ADMIN_LOG_FORMAT, SYNC_LOG_PATH, DEBUG_LOG_PATH)

Check warning on line 131 in tools/logger.py

View check run for this annotation

Codecov / codecov/patch

tools/logger.py#L131

Added line #L131 was not covered by tests
Loading