mirror of
https://github.com/samuelncui/yatm.git
synced 2026-01-06 21:36:30 +00:00
16 lines
389 B
Go
16 lines
389 B
Go
package executor
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/samuelncui/yatm/entity"
|
|
)
|
|
|
|
func (e *Executor) startArchive(ctx context.Context, job *Job) error {
|
|
return e.Submit(ctx, job, &entity.JobNextParam{Param: &entity.JobNextParam_Archive{
|
|
Archive: &entity.JobArchiveNextParam{Param: &entity.JobArchiveNextParam_WaitForTape{
|
|
WaitForTape: &entity.JobArchiveWaitForTapeParam{},
|
|
}},
|
|
}})
|
|
}
|