作业调度服务器 Workq

码农软件 · 软件分类 · 作业/任务调度 · 2019-09-04 14:12:25

软件介绍

Workq 是一个用 Go 开发的作业调度服务器。主要特性:

  • 异步和同步的作业处理

    • 提交作业,然后在作业完成后返回结果,最多等待 TTL

    • 提交作业并马上获得执行结果

  • 在任意时间临时安排作业调度

  • 使用数值表示作业优先级

  • 可以制定每个作业的 TTR (time-to-run) - 限制最大执行时间

  • 可以制定每个作业的 TTL 超时 - 限制作业最大存活时间

  • 每个作业可单独设置重试策略,包括 max-attempts 和 max-fails 参数

示例代码:

job := &workq.FgJob{
    ID: "6ba7b810-9dad-11d1-80b4-00c04fd430c4",
    Name: "ping",
    TTR: 5000,          // 5 second time-to-run limit
    Timeout: 60000,         // Wait up to 60 seconds for a worker to pick up.
    Payload: []byte("ping"),
    Priority: 10,       // @OPTIONAL Numeric priority, default 0.
}
result, err := client.Run(job)
if err != nil {
  // ...
}

fmt.Printf("Success: %t, Result: %s", result.Success, result.Result)

本文地址:https://codercto.com/soft/d/13861.html

The Cult of the Amateur

The Cult of the Amateur

Andrew Keen / Crown Business / 2007-6-5 / USD 22.95

Amateur hour has arrived, and the audience is running the show In a hard-hitting and provocative polemic, Silicon Valley insider and pundit Andrew Keen exposes the grave consequences of today’s......一起来看看 《The Cult of the Amateur》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具