Skip to content

Commit

Permalink
add alert task
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Apr 24, 2024
1 parent 4c8bfa5 commit 908ad04
Show file tree
Hide file tree
Showing 7 changed files with 451 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cmd/curio/tasks/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (

"github.com/filecoin-project/lotus/cmd/curio/deps"
curio "github.com/filecoin-project/lotus/curiosrc"
"github.com/filecoin-project/lotus/curiosrc/alertmanager"
"github.com/filecoin-project/lotus/curiosrc/chainsched"
"github.com/filecoin-project/lotus/curiosrc/ffi"
"github.com/filecoin-project/lotus/curiosrc/gc"
Expand Down Expand Up @@ -143,6 +144,9 @@ func StartTasks(ctx context.Context, dependencies *deps.Deps) (*harmonytask.Task
activeTasks = append(activeTasks, storageEndpointGcTask)
}

amTask := alertmanager.NewAlertTask(full, db, cfg.Alerting)
activeTasks = append(activeTasks, amTask)

if needProofParams {
for spt := range dependencies.ProofTypes {
if err := modules.GetParams(true)(spt); err != nil {
Expand Down
Loading

0 comments on commit 908ad04

Please sign in to comment.