jobs

package
v0.0.0-...-426e299 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Cron

type Cron interface {
	Start(context.Context) error
}

func NewCron

func NewCron(
	executeAllPendingDownloadTaskJob ExecuteAllPendingDownloadTaskJob,
	updateFailedDownloadTaskStatusToPending UpdateFailedDownloadTaskStatusToPendingJob,
	logger *zap.Logger,
) (Cron, error)

type ExecuteAllPendingDownloadTaskJob

type ExecuteAllPendingDownloadTaskJob interface {
	Run(ctx context.Context) error
	GetSchedule() string
}

func NewExecuteAllPendingDownloadTaskJob

func NewExecuteAllPendingDownloadTaskJob(
	downloadTaskLogic logic.DownloadTaskLogic,
	cronConfig configs.Cron,
) ExecuteAllPendingDownloadTaskJob

type Job

type Job interface {
	Run(context.Context) error
	GetSchedule() string
}

type UpdateFailedDownloadTaskStatusToPendingJob

type UpdateFailedDownloadTaskStatusToPendingJob interface {
	Run(ctx context.Context) error
	GetSchedule() string
}

func NewUpdateFailedDownloadTaskStatusToPendingJob

func NewUpdateFailedDownloadTaskStatusToPendingJob(
	downloadTaskLogic logic.DownloadTaskLogic,
	cronConfig configs.Cron,
) UpdateFailedDownloadTaskStatusToPendingJob

Jump to

Keyboard shortcuts

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