gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:44:56 24 4
gpt4 key购买 nike

我试图理解 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com