Skip to content

Releases: devfeel/dottask

add 'StopTask' logic to RemoveTask to fix exceptions where the task cannot be GC after removal

16 Apr 05:18
Compare
Choose a tag to compare

Version 0.9.11

  • bugfix: add 'StopTask' logic to RemoveTask to fix exceptions where the task cannot be GC after removal
  • Thanks to @aixinaxc for #12
  • 2023-04-16 13:00 at ShangHai

Add LICENSE file & add PackageVersion

17 Apr 00:49
Compare
Choose a tag to compare

Version 0.9.10

  • feature: add LICENSE file for issue #10, thanks to @katsusan.
  • feature: add PackageVersion use to return packageVersion info
  • 2022-04-17 08:00 at ShangHai

增加超时控制支持

25 Apr 12:07
Compare
Choose a tag to compare

Version v0.9.9

  • feature: TaskContext增加TimeoutContext与TimeoutCancel属性,用于超时控制,应用可根据需要从TaskContext获取
  • feature: TaskInfo增加SetTimeout,用于设置超时时间,单位为秒
  • refactor: 移除TaskInfo.Context()
  • 2020-04-25 16:00 at ShangHai

丰富TaskContext,实用性增强

12 Apr 00:50
Compare
Choose a tag to compare

##Version v0.9.8

  • feature: TaskContext增加Header属性,类型为Map[string]interface{},用于在一次执行周期内传递自定义数据,每次执行完置空
  • feature: TaskContext增加Error属性,类型为error,用于在一次执行周期内传递执行结果的Error信息,每次执行完置空
  • refactor: 从StartNewService中移除LogCounterTask注册,独立为UseDefaultLogCounterTask供应用单独调用
  • 2020-03-28 16:00 at ShangHai

修正Logger定义,重构部分代码

15 Mar 04:10
Compare
Choose a tag to compare
  • Opt: add json tag '-' on TaskConfig.Handler, to ignore json marshal
  • Opt: 修正Logger定义,与dotlog适配
  • Opt: 整理代码格式
  • 2020-03-15 12:00 at ShangHai

新增CreateTask,优化Task创建方式

04 Jan 01:48
Compare
Choose a tag to compare

Version 0.9.4

  • feature: 新增CreateTask用于根据TaskConfig对象创建对应的Task
  • Opt: 新增ErrNotSupportTaskType异常变量
  • About CreateTask:
    • Define: CreateTask(config TaskConfig) (Task, error)
    • 支持cron\loop\queue三类Task的创建
    • 定义错误的Task类型时将返回ErrNotSupportTaskType
  • Opt: 整理代码格式
  • 2020-01-04 09:00 at ShangHai

完善config模块,优化config注入模式

20 Dec 08:25
Compare
Choose a tag to compare

Version 0.9.3

  • Opt: 完善config模块,优化config注入模式
  • Opt: 增加ConfigHandle函数定义,用于应用自定义config加载实现(如从redis\mysql等源读取配置)
  • feature: 新增LoadFileConfig用于逐步替换原LoadConfig,主要用于读取xml\json\yaml格式配置文件
  • feature: 新增LoadConfigHandler用于应用自定义配置加载方式的注入
  • 2019-12-20 09:00 at ShangHai

新增输出Task信息与Counter信息的go原生HandlerFunc

10 Nov 01:16
Compare
Choose a tag to compare

Version 0.9.1

  • feature: 新增输出Task信息与Counter信息的go原生HandlerFunc
  • fix: 修复CronTask对RunCounter统计逻辑BUG
  • refactor: 重构startCronTask实现
  • About HttpOutput:
  • How to use:
	server.RegisterHandlerFunc(dotweb.RouteMethod_GET, "/task/counter", global.DotTask.CounterOutputHttpHandler)
  • 2019-11-10 09:00

release version

06 Nov 14:40
Compare
Choose a tag to compare

Release version, you can use it!