Files
yatm/executor/job_restore_start.go
2023-09-26 16:47:06 +08:00

16 lines
389 B
Go

package executor
import (
"context"
"github.com/samuelncui/yatm/entity"
)
func (e *Executor) startRestore(ctx context.Context, job *Job) error {
return e.Submit(ctx, job, &entity.JobNextParam{Param: &entity.JobNextParam_Restore{
Restore: &entity.JobRestoreNextParam{Param: &entity.JobRestoreNextParam_WaitForTape{
WaitForTape: &entity.JobRestoreWaitForTapeParam{},
}},
}})
}