task

package
v1.21.11 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 23 Imported by: 2

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 added in v1.21.0

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