task

package module
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

README

Task

编译状态 Golang质量 版本 仓库大小 最后提交 授权协议 语言个数 最佳语言 星星个数

任务调度基础类库,提供基础任务定义

捐助

支持宝 微信

感谢Jetbrains

本项目通过Jetbrains开源许可IDE编写源代码,特此感谢

Jetbrains图标

Documentation

Index

Constants

View Source
const (
	// StatusCreated 已创建
	StatusCreated = kernel.StatusCreated
	// StatusRunning 执行中
	StatusRunning = kernel.StatusRunning
	// StatusRetrying 重试中
	StatusRetrying = kernel.StatusRetrying

	// StatusFailed 失败
	StatusFailed = kernel.StatusFailed

	// StatusSuccess 成功
	StatusSuccess = kernel.StatusSuccess
)

Variables

This section is empty.

Functions

func New added in v0.1.3

func New() *builder.Agent

func NewSchedule added in v0.1.5

func NewSchedule(target uint64, subtype kernel.Type) *builder.Schedule

Types

type Agent

type Agent = core.Agent

Agent 任务执行器

type Context added in v0.1.7

type Context = kernel.Context

Context 上下文

type Executor added in v0.0.6

type Executor = kernel.Executor

type Schedule added in v0.1.5

type Schedule = kernel.Schedule

Schedule 计划

type Status added in v0.0.3

type Status = kernel.Status

Status 类型

type Task added in v0.1.5

type Task = kernel.Task

type Tasker added in v0.1.3

type Tasker = kernel.Tasker

Tasker 任务器,用于任务执行逻辑

type Type added in v0.1.2

type Type = kernel.Type

Type 类型

Jump to

Keyboard shortcuts

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