Documentation
¶
Overview ¶
Package batch holds the tasks that act on a batch job through its cluster's scheduler: building the submission script, submitting it and cancelling it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkIssuer ¶
LinkIssuer mints the secrets a submission's job is handed so a Linkspan it runs can link back to Airavata. It is process/service.LinkService.
type Tasks ¶
type Tasks struct {
// contains filtered or unexported fields
}
Tasks carries out the batch tasks of a process. Its methods are workflow activities.
func New ¶
func New(processes *processrepo.ProcessRepository, jobSubmissionTasks *processrepo.JobSubmissionTaskRepository, slurmClusterConfigs *computerepo.SlurmClusterConfigRepository, batchDeployments *applicationrepo.BatchDeploymentRepository, templates *applicationrepo.TemplateRepository, batchStatus *processrepo.BatchJobStatusRepository, sshContext *ssh.GlobalSSHContext, tracker *execution.TaskTracker, links LinkIssuer, ) *Tasks
New returns the batch tasks over the given repositories.
func (*Tasks) CancelBatchJob ¶
func (*Tasks) SubmitBatchJob ¶
func (a *Tasks) SubmitBatchJob(ctx context.Context, executionContext *execution.Context, processID string, taskID string) (*execution.Context, error)
SubmitBatchJob builds the process's submission script, uploads it and submits it, recording the task's status as it goes.