lpseal: Connect move storage poller
This commit is contained in:
parent
8a73987529
commit
87892ffe84
@ -137,7 +137,7 @@ func (s *SealPoller) poll(ctx context.Context) error {
|
|||||||
task_id_commit_msg, after_commit_msg,
|
task_id_commit_msg, after_commit_msg,
|
||||||
after_commit_msg_success,
|
after_commit_msg_success,
|
||||||
failed, failed_reason
|
failed, failed_reason
|
||||||
FROM sectors_sdr_pipeline WHERE after_commit_msg_success != true or after_finalize != true`)
|
FROM sectors_sdr_pipeline WHERE after_commit_msg_success != true or after_move_storage != true`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -159,6 +159,7 @@ func (s *SealPoller) poll(ctx context.Context) error {
|
|||||||
s.mustPoll(s.pollPrecommitMsgLanded(ctx, task))
|
s.mustPoll(s.pollPrecommitMsgLanded(ctx, task))
|
||||||
s.pollStartPoRep(ctx, task, ts)
|
s.pollStartPoRep(ctx, task, ts)
|
||||||
s.pollStartFinalize(ctx, task, ts)
|
s.pollStartFinalize(ctx, task, ts)
|
||||||
|
s.pollStartMoveStorage(ctx, task)
|
||||||
s.pollStartCommitMsg(ctx, task)
|
s.pollStartCommitMsg(ctx, task)
|
||||||
s.mustPoll(s.pollCommitMsgLanded(ctx, task))
|
s.mustPoll(s.pollCommitMsgLanded(ctx, task))
|
||||||
}
|
}
|
||||||
|
@ -118,7 +118,7 @@ func (m *MoveStorageTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytas
|
|||||||
}
|
}
|
||||||
var haveStorage bool
|
var haveStorage bool
|
||||||
for _, l := range ls {
|
for _, l := range ls {
|
||||||
if l.CanSeal {
|
if l.CanStore {
|
||||||
haveStorage = true
|
haveStorage = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user