Skip to content

Commit

Permalink
feat: Add DAQJobHandleAlerts to job type dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
furkan-bilgin committed Oct 14, 2024
1 parent b769e78 commit 46f05ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions configs/examples/handle_alerts.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
daq_job_type = "handle_alerts"

[store_config]
daq_job_store_type = "csv"
file_path = "out/healthcheck.csv"
add_date = true
2 changes: 2 additions & 0 deletions src/daq/types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from daq.alert.alert_slack import DAQJobAlertSlack
from daq.base import DAQJob
from daq.jobs.caen.n1081b import DAQJobN1081B
from daq.jobs.handle_alerts import DAQJobHandleAlerts
from daq.jobs.handle_stats import DAQJobHandleStats
from daq.jobs.healthcheck import DAQJobHealthcheck
from daq.jobs.serve_http import DAQJobServeHTTP
Expand All @@ -15,6 +16,7 @@
"store_root": DAQJobStoreROOT,
"serve_http": DAQJobServeHTTP,
"handle_stats": DAQJobHandleStats,
"handle_alerts": DAQJobHandleAlerts,
"alert_slack": DAQJobAlertSlack,
"healthcheck": DAQJobHealthcheck,
}

0 comments on commit 46f05ad

Please sign in to comment.