nbRescheduled, err := client.Jobs.Retry(ctx,
    uuid.MustParse("0195c87a-49f6-5ffa-e3cb-92215d057ea6"),
)
func (*JobClient) Retry(
    ctx context.Context,
    jobID uuid.UUID,
) (int64, error)

Retry a job. All failed tasks will become queued again, and queued tasks will be picked up by task runners again.

Parameters

jobID
uuid.UUID

The id of the job to retry

Returns

The number of tasks that were rescheduled.

nbRescheduled, err := client.Jobs.Retry(ctx,
    uuid.MustParse("0195c87a-49f6-5ffa-e3cb-92215d057ea6"),
)

Errors

not_found
job not found

The specified job does not exist.