作业调度服务器 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://www.codercto.com/soft/d/13861.html

SCWCD Exam Study Kit Second Edition

SCWCD Exam Study Kit Second Edition

Hanumant Deshmukh、Jignesh Malavia、Matthew Scarpino / Manning Publications / 2005-05-20 / USD 49.95

Aimed at helping Java developers, Servlet/JSP developers, and J2EE developers pass the Sun Certified Web Component Developer Exam (SCWCD 310-081), this study guide covers all aspects of the Servlet an......一起来看看 《SCWCD Exam Study Kit Second Edition》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具