Skip to content

Commit

Permalink
fix-exception-running-task-did-not-find-monitor-with-the-id (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
JKL98ISR authored Oct 1, 2024
1 parent 433fb79 commit 9cabc75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion backend/deepchecks_monitoring/bgtasks/alert_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ async def execute_monitor(
))

if monitor is None:
raise ValueError(f'Did not find monitor with the id {monitor_id}')
logger.info('Did not find monitor with the id: %s', monitor_id)
return []

check = monitor.check
alert_rules = monitor.alert_rules
Expand Down
4 changes: 2 additions & 2 deletions backend/deepchecks_monitoring/bgtasks/tasks_queuer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from deepchecks_monitoring.bgtasks.mixpanel_system_state_event import MixpanelSystemStateEvent
from deepchecks_monitoring.bgtasks.model_data_ingestion_alerter import ModelDataIngestionAlerter
from deepchecks_monitoring.bgtasks.model_version_cache_invalidation import ModelVersionCacheInvalidation
from deepchecks_monitoring.bgtasks.model_version_topic_delete import ModelVersionTopicDeletionWorker
# from deepchecks_monitoring.bgtasks.model_version_topic_delete import ModelVersionTopicDeletionWorker
from deepchecks_monitoring.config import DatabaseSettings, RedisSettings
from deepchecks_monitoring.logic.keys import GLOBAL_TASK_QUEUE
from deepchecks_monitoring.monitoring_utils import configure_logger
Expand Down Expand Up @@ -201,7 +201,7 @@ async def main():
ee.utils.telemetry.collect_telemetry(tasks_queuer.TasksQueuer)

workers = [
ModelVersionTopicDeletionWorker,
# ModelVersionTopicDeletionWorker,
ModelVersionCacheInvalidation,
ModelDataIngestionAlerter,
DeleteDbTableTask,
Expand Down

0 comments on commit 9cabc75

Please sign in to comment.