Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between Gearman's job and task?

I'm trying to understand Gearman but until now I can't figure out what's the difference between task and job.

I'm trying to create a client which will parse periodically (every 10 minutes) a XML page. Which is the best approach?

like image 266
SilVeR AleCS Avatar asked Nov 03 '22 22:11

SilVeR AleCS


1 Answers

The manual 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.

like image 117
deceze Avatar answered Nov 08 '22 21:11

deceze