Skip to content
Merged
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
11 changes: 10 additions & 1 deletion mlex_utils/dash_utils/callbacks/manage_jobs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging

from dash import html, no_update

from mlex_utils.prefect_utils.core import (
Expand All @@ -16,11 +18,18 @@
]


logger = logging.getLogger(__name__)


def _check_job(prefect_tags, mode):
if mode == "dev":
data = DEV_JOBS
else:
data = query_flow_runs(tags=prefect_tags)
try:
data = query_flow_runs(tags=prefect_tags)
except Exception as e:
logger.warning(f"Failed to query flow runs: {e}")
data = []
return data


Expand Down