Help us shape the future of Go! Take the 2026 Go Developer Survey

task

package
v1.27.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMigrateTask

func CreateMigrateTask(ctx context.Context, doer, u *user_model.User, opts base.MigrateOptions) (*admin_model.Task, error)

CreateMigrateTask creates a migrate task

func Init

func Init() error

Init will start the service to get all unfinished tasks and run them

func MigrateRepository

func MigrateRepository(ctx context.Context, doer, u *user_model.User, opts base.MigrateOptions) error

MigrateRepository add migration repository to task

func RetryMigrateTask

func RetryMigrateTask(ctx context.Context, repoID int64) error

RetryMigrateTask retry a migrate task

func Run

func Run(ctx context.Context, t *admin_model.Task) error

Run a task

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL