php - Gearman 的工作和任务有什么区别?

标签 php xml task jobs gearman

我试图理解 Gearman,但直到现在我还无法弄清楚任务和工作之间的区别。

我正在尝试创建一个客户端,它将定期(每 10 分钟)解析一个 XML 页面。哪种方法最好?

最佳答案

手册offers a terrific explanation :

Jobs vs. Tasks

A task is any request or communication between the client and the job server. A task is usually communication about a job. Tasks might be please run this job or what is the status of this job. A job is something the worker does, continuously waiting on the job server to tell him when to start and with what arguments. Clients submit jobs and ask for status about jobs (both of those things are considered tasks). Workers actually perform the jobs.

关于php - Gearman 的工作和任务有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16373032/

相关文章:

javascript - 在 window.location.replace 中使用参数

php - 单击提交前 undefined variable

php - 将 bootstrap 与 Composer 一起使用

c# - XElement 添加一个 xmlns

xml - 如何将属性添加到节点的所有特定子节点

c# - 异步代码是否可能比同步代码花费更多时间?

PHP 从表中获取 MYSQL id 并在另一个表中获取 foreach

xml - Powershell - 将复杂的 XML 转换为 CSV

c# - 异步任务的 NUnit 测试在 C# 中失败

windows-services - Windows 任务调度程序用于调度代码重复运行的可靠性如何?