Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Gearman,我可以检查作业失败了多少次?示例:如果一项工作失败,我希望它重复。如果作业失败 5 次,则将其删除。我必须使用哪个功能。
例如:如果我想排队从服务器下载文件。如果该服务器已关闭,则无法完成作业。
简而言之,没有。您无法查询作业失败的次数。然而,该信息在 gearmand 中,但还没有 API 可以访问它。
我认为您正在寻找的选项是
-j, --job-重试
这是 gearmand 服务器在启动时采用的参数。它指定作业在被丢弃之前可以重试的次数。它是一个全局设置,不能针对不同的作业类型配置为不同的设置。它也不能从 gearman 客户端设置或更改。